123456789101112131415161718192021222324252627282930313233 |
- #ifndef _STRING_CONVERT_HPP___
- #define _STRING_CONVERT_HPP___
- #include "boost/date_time/compiler_config.hpp"
- #include <string>
- namespace boost {
- namespace date_time {
-
-
- template<class InputT, class OutputT>
- inline
- std::basic_string<OutputT> convert_string_type(const std::basic_string<InputT>& inp_str)
- {
- typedef std::basic_string<InputT> input_type;
- typedef std::basic_string<OutputT> output_type;
- output_type result;
- result.insert(result.begin(), inp_str.begin(), inp_str.end());
- return result;
- }
-
- }}
- #endif
|