Boost C++ Libraries: Ticket #5347: property_tree documentation error / ptree bug ? https://svn.boost.org/trac10/ticket/5347 <p> boost 1.46.1 More or less straight out of the docu: </p> <p> #include &lt;boost/property_tree/ptree.hpp&gt; boost::property_tree::ptree pt; boost::property_tree::ptree::const_iterator it = pt.find( "blabla" ); </p> <p> Compiler's opinion: error: conversion from ‘boost::property_tree::basic_ptree&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::less&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;::assoc_iterator’ to non-scalar type ‘boost::property_tree::basic_ptree&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::less&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;::const_iterator’ requested </p> <p> $gcc --version $gcc (<a class="missing wiki">Ubuntu/Linaro</a> 4.4.4-14ubuntu5) 4.4.5 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5347 Trac 1.4.3 Sebastian Redl Mon, 21 Mar 2011 13:45:15 GMT <link>https://svn.boost.org/trac10/ticket/5347#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5347#comment:1</guid> <description> <p> This is a documentation bug. find() returns a ptree::assoc_iterator. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Mon, 16 May 2011 21:38:12 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5347#comment:2 https://svn.boost.org/trac10/ticket/5347#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Documentation should be fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/71994" title="Merge r70664-70666 to release. Improves INI parser and brings ...">r71994</a>. </p> Ticket