Boost C++ Libraries: Ticket #4973: ini_parser.hpp doesn't handle sections correctly https://svn.boost.org/trac10/ticket/4973 <pre class="wiki"> ptree pt; pt.put("debug.filename", "tst.log"); pt.put("other", "tst"); </pre><p> "other" is correctly put in no section </p> <pre class="wiki"> boost::property_tree::write_ini("tst.ini", pt); boost::property_tree::read_ini("tst.ini", pt); </pre><p> "other" is now suddenly in "debug" section </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4973 Trac 1.4.3 Vicente Botet <vicente.botet@…> Sat, 11 Dec 2010 14:14:39 GMT component changed; owner set https://svn.boost.org/trac10/ticket/4973#comment:1 https://svn.boost.org/trac10/ticket/4973#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Sebastian Redl</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">property_tree</span> </li> </ul> Ticket prabhu.swain@… Mon, 13 Dec 2010 10:02:15 GMT cc set https://svn.boost.org/trac10/ticket/4973#comment:2 https://svn.boost.org/trac10/ticket/4973#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">prabhu.swain@…</span> added </li> </ul> Ticket sipan at sipan.org Wed, 14 Dec 2011 17:28:24 GMT <link>https://svn.boost.org/trac10/ticket/4973#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4973#comment:3</guid> <description> <pre class="wiki">--- 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 &lt;&lt; it-&gt;second.template get_value&lt; std::basic_string&lt;Ch&gt; &gt;() &lt;&lt; Ch('\n'); - } else { + } + } + + for (typename Ptree::const_iterator it = pt.begin(), end = pt.end(); + it != end; ++it) + { + check_dupes(it-&gt;second); + if (!it-&gt;second.empty()) { if (!it-&gt;second.data().empty()) BOOST_PROPERTY_TREE_THROW(ini_parser_error( "mixed data and children", "", 0)); </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Wed, 21 Jan 2015 14:02:15 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/4973#comment:4 https://svn.boost.org/trac10/ticket/4973#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Fixed by commit 2463e87 on develop. </p> Ticket Sebastian Redl Fri, 23 Jan 2015 10:46:11 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4973#comment:5 https://svn.boost.org/trac10/ticket/4973#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Merged to master in commit 3befb8cbe4. </p> Ticket