|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78550 - in trunk: boost/property_tree/detail libs/property_tree/test
From: sebastian.redl_at_[hidden]
Date: 2012-05-23 08:09:28
Author: cornedbee
Date: 2012-05-23 08:09:27 EDT (Wed, 23 May 2012)
New Revision: 78550
URL: http://svn.boost.org/trac/boost/changeset/78550
Log:
Remove a stray semicolon. Fix a type conversion that has become invalid in C++11. Update the XML parser test to cope with the new detail/utf8_codecvt layout. See bugs 6808 and 6785 for the first two issues.
Text files modified:
trunk/boost/property_tree/detail/json_parser_read.hpp | 3 ++-
trunk/boost/property_tree/detail/ptree_implementation.hpp | 2 +-
trunk/libs/property_tree/test/test_xml_parser_rapidxml.cpp | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
Modified: trunk/boost/property_tree/detail/json_parser_read.hpp
==============================================================================
--- trunk/boost/property_tree/detail/json_parser_read.hpp (original)
+++ trunk/boost/property_tree/detail/json_parser_read.hpp 2012-05-23 08:09:27 EDT (Wed, 23 May 2012)
@@ -102,7 +102,8 @@
void operator()(It b, It e) const
{
BOOST_ASSERT(c.stack.size() >= 1);
- c.stack.back()->push_back(std::make_pair(c.name, Str(b, e)));
+ c.stack.back()->push_back(std::make_pair(c.name,
+ Ptree(Str(b, e))));
c.name.clear();
c.string.clear();
}
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 2012-05-23 08:09:27 EDT (Wed, 23 May 2012)
@@ -389,7 +389,7 @@
template <typename P>
bool operator ()(const P& lhs, const P& rhs) const {
return lhs.first < rhs.first;
- };
+ }
};
}
Modified: trunk/libs/property_tree/test/test_xml_parser_rapidxml.cpp
==============================================================================
--- trunk/libs/property_tree/test/test_xml_parser_rapidxml.cpp (original)
+++ trunk/libs/property_tree/test/test_xml_parser_rapidxml.cpp 2012-05-23 08:09:27 EDT (Wed, 23 May 2012)
@@ -15,7 +15,7 @@
#define BOOST_UTF8_END_NAMESPACE }}
#define BOOST_UTF8_DECL
#include <boost/detail/utf8_codecvt_facet.hpp>
-#include "../../detail/utf8_codecvt_facet.cpp"
+#include <boost/detail/utf8_codecvt_facet.ipp>
int test_main(int argc, char *argv[])
{
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