fix doc example typo
[boost.git] / boost / property_tree / detail / info_parser_utils.hpp
blobf30010eb8ac7a1309b38f44586008958f494b2f3
1 // ----------------------------------------------------------------------------
2 // Copyright (C) 2002-2006 Marcin Kalicinski
3 //
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 // For more information, see www.boost.org
9 // ----------------------------------------------------------------------------
10 #ifndef BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_CHCONV_HPP_INCLUDED
11 #define BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_CHCONV_HPP_INCLUDED
13 #include <string>
15 namespace boost { namespace property_tree { namespace info_parser
18 template<class ChDest, class ChSrc>
19 std::basic_string<ChDest> convert_chtype(const ChSrc *text)
21 std::basic_string<ChDest> result;
22 while (*text)
24 result += ChDest(*text);
25 ++text;
27 return result;
30 } } }
32 #endif