Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56211 - in trunk: boost/property_tree/detail libs/property_tree/test
From: sebastian.redl_at_[hidden]
Date: 2009-09-15 08:03:38


Author: cornedbee
Date: 2009-09-15 08:03:37 EDT (Tue, 15 Sep 2009)
New Revision: 56211
URL: http://svn.boost.org/trac/boost/changeset/56211

Log:
Fix compilation under strict conformance, thanks to Daniel.
Text files modified:
   trunk/boost/property_tree/detail/ptree_implementation.hpp | 4 ++--
   trunk/libs/property_tree/test/test_utils.hpp | 1 +
   2 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/boost/property_tree/detail/ptree_implementation.hpp
==============================================================================
--- trunk/boost/property_tree/detail/ptree_implementation.hpp (original)
+++ trunk/boost/property_tree/detail/ptree_implementation.hpp 2009-09-15 08:03:37 EDT (Tue, 15 Sep 2009)
@@ -44,10 +44,10 @@
             return *static_cast<const base_container*>(s->m_children);
         }
         static by_name_index& assoc(self_type *s) {
- return ch(s).get<by_name>();
+ return ch(s).BOOST_NESTED_TEMPLATE get<by_name>();
         }
         static const by_name_index& assoc(const self_type *s) {
- return ch(s).get<by_name>();
+ return ch(s).BOOST_NESTED_TEMPLATE get<by_name>();
         }
     };
     template <class K, class D, class C>

Modified: trunk/libs/property_tree/test/test_utils.hpp
==============================================================================
--- trunk/libs/property_tree/test/test_utils.hpp (original)
+++ trunk/libs/property_tree/test/test_utils.hpp 2009-09-15 08:03:37 EDT (Tue, 15 Sep 2009)
@@ -62,6 +62,7 @@
         {
             name = filename;
             std::ofstream stream(name.c_str());
+ using namespace std;
             stream.write(test_data, strlen(test_data));
             BOOST_CHECK(stream.good());
         }


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