Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56121 - trunk/boost/property_tree
From: sebastian.redl_at_[hidden]
Date: 2009-09-09 08:08:34


Author: cornedbee
Date: 2009-09-09 08:08:33 EDT (Wed, 09 Sep 2009)
New Revision: 56121
URL: http://svn.boost.org/trac/boost/changeset/56121

Log:
Fix compilation errors on MSVC.
Text files modified:
   trunk/boost/property_tree/ini_parser.hpp | 14 +++++++-------
   1 files changed, 7 insertions(+), 7 deletions(-)

Modified: trunk/boost/property_tree/ini_parser.hpp
==============================================================================
--- trunk/boost/property_tree/ini_parser.hpp (original)
+++ trunk/boost/property_tree/ini_parser.hpp 2009-09-09 08:08:33 EDT (Wed, 09 Sep 2009)
@@ -89,7 +89,7 @@
                     "read error", "", line_no));
 
             // If line is non-empty
- line = detail::trim(line, stream.getloc());
+ line = property_tree::detail::trim(line, stream.getloc());
             if (!line.empty())
             {
                 // Comment, section or key?
@@ -106,8 +106,8 @@
                     if (end == Str::npos)
                         BOOST_PROPERTY_TREE_THROW(ini_parser_error(
                             "unmatched '['", "", line_no));
- Str key = detail::trim(line.substr(1, end - 1),
- stream.getloc());
+ Str key = property_tree::detail::trim(
+ line.substr(1, end - 1), stream.getloc());
                     if (local.find(key) != local.not_found())
                         BOOST_PROPERTY_TREE_THROW(ini_parser_error(
                             "duplicate section name", "", line_no));
@@ -124,10 +124,10 @@
                     if (eqpos == 0)
                         BOOST_PROPERTY_TREE_THROW(ini_parser_error(
                             "key expected", "", line_no));
- Str key = detail::trim(line.substr(0, eqpos),
- stream.getloc());
- Str data = detail::trim(line.substr(eqpos + 1, Str::npos),
- stream.getloc());
+ Str key = property_tree::detail::trim(
+ line.substr(0, eqpos), stream.getloc());
+ Str data = property_tree::detail::trim(
+ line.substr(eqpos + 1, Str::npos), stream.getloc());
                     if (container.find(key) != container.not_found())
                         BOOST_PROPERTY_TREE_THROW(ini_parser_error(
                             "duplicate key name", "", line_no));


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk