Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4973: ini_parser.hpp doesn't handle sections correctly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-14 17:28:25
#4973: ini_parser.hpp doesn't handle sections correctly
-------------------------------+--------------------------------------------
Reporter: bernd@⦠| Owner: cornedbee
Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by sipan at sipan.org):
{{{
--- ini_parser.hpp 2011-12-14 12:15:22.000000000 -0500
+++ inix_parser.hpp 2011-12-14 12:12:45.000000000 -0500
@@ -238,7 +238,14 @@ namespace boost { namespace property_tre
<< it->second.template get_value<
std::basic_string<Ch> >()
<< Ch('\n');
- } else {
+ }
+ }
+
+ for (typename Ptree::const_iterator it = pt.begin(), end =
pt.end();
+ it != end; ++it)
+ {
+ check_dupes(it->second);
+ if (!it->second.empty()) {
if (!it->second.data().empty())
BOOST_PROPERTY_TREE_THROW(ini_parser_error(
"mixed data and children", "", 0));
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4973#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC