1234567891011121314151617181920212223242526272829303132 |
- #ifndef BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_CHCONV_HPP_INCLUDED
- #define BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_CHCONV_HPP_INCLUDED
- #include <string>
- namespace boost { namespace property_tree { namespace info_parser
- {
- template<class ChDest, class ChSrc>
- std::basic_string<ChDest> convert_chtype(const ChSrc *text)
- {
- std::basic_string<ChDest> result;
- while (*text)
- {
- result += ChDest(*text);
- ++text;
- }
- return result;
- }
- } } }
- #endif
|