Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:16

0001 // ----------------------------------------------------------------------------
0002 // Copyright (C) 2002-2006 Marcin Kalicinski
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. 
0005 // (See accompanying file LICENSE_1_0.txt or copy at 
0006 // http://www.boost.org/LICENSE_1_0.txt)
0007 //
0008 // For more information, see www.boost.org
0009 // ----------------------------------------------------------------------------
0010 #ifndef BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_CHCONV_HPP_INCLUDED
0011 #define BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_CHCONV_HPP_INCLUDED
0012 
0013 #include <string>
0014 
0015 namespace boost { namespace property_tree { namespace info_parser
0016 {
0017 
0018     template<class ChDest, class ChSrc>
0019     std::basic_string<ChDest> convert_chtype(const ChSrc *text)
0020     {
0021         std::basic_string<ChDest> result;
0022         while (*text)
0023         {
0024             result += ChDest(*text);
0025             ++text;
0026         }
0027         return result;
0028     }
0029 
0030 } } }
0031 
0032 #endif