Boost C++ Libraries: Ticket #3925: Property tree documentation is seriously out of date https://svn.boost.org/trac10/ticket/3925 <p> At <a href="http://www.boost.org/doc/libs/1_42_0/doc/html/boost_propertytree/parsers.html">http://www.boost.org/doc/libs/1_42_0/doc/html/boost_propertytree/parsers.html</a>, the end page notes contains stuffs like "[include cmd_line_parser.qbk]", this is unlikely what the author wants. </p> <p> At <a href="http://www.boost.org/doc/libs/1_42_0/doc/html/boost_propertytree/accessing.html">http://www.boost.org/doc/libs/1_42_0/doc/html/boost_propertytree/accessing.html</a>, the 2nd code is like "double pi = boost::lexical_cast&lt;double&gt;(it-&gt;second._ptree_data<span class="underline">());", _ptree_data</span> is just wrong. Same for the last code "pt.<span class="underline">ptree_put_own</span>(3.14f);" </p> <p> I'm pretty sure I could find much more errors like this, someone should take the time to read the documentation accuratly. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3925 Trac 1.4.3 anonymous Tue, 16 Feb 2010 14:39:29 GMT <link>https://svn.boost.org/trac10/ticket/3925#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3925#comment:1</guid> <description> <p> There's also <a href="http://www.boost.org/doc/libs/1_42_0/doc/html/boost_propertytree/accessing.html">http://www.boost.org/doc/libs/1_42_0/doc/html/boost_propertytree/accessing.html</a> which is just plain wrong on access like: </p> <p> pt.get&lt;float&gt;('/', "p.a.t.h/t.o/v.a.l.u.e"); </p> <p> This is actually done like this: </p> <p> pt.get&lt;float&gt;(ptree::path_type("p.a.t.h/t.o/v.a.l.u.e", '/')); </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 16 Feb 2010 14:39:49 GMT</pubDate> <title>summary changed https://svn.boost.org/trac10/ticket/3925#comment:2 https://svn.boost.org/trac10/ticket/3925#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">Property tree documentation has a lot of formatting bugs</span> → <span class="trac-field-new">Property tree documentation is seriously out of date</span> </li> </ul> Ticket Rob Stewart <robert.stewart@…> Thu, 20 Jan 2011 19:21:01 GMT <link>https://svn.boost.org/trac10/ticket/3925#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3925#comment:3</guid> <description> <p> These problems persist in 1.45. accessing.html also mentions <code>__ptree_put_own__</code> on the last line. (I think it should be <code>put_value</code> instead.) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Mon, 16 May 2011 18:52:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3925#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3925#comment:4</guid> <description> <p> Big improvements 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>, but still work to do. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 11 Jul 2011 05:37:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3925#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3925#comment:5</guid> <description> <p> In: <a href="http://www.boost.org/doc/libs/1_46_1/libs/property_tree/examples/debug_settings.cpp">http://www.boost.org/doc/libs/1_46_1/libs/property_tree/examples/debug_settings.cpp</a> </p> <p> This probably shouldn't be a comment. It works works fine on the example input, and if it throws an exception there is a comment above explaining why. </p> <pre class="wiki"> //BOOST_FOREACH(ptree::value_type &amp;v, pt.get_child("debug.modules")) // m_modules.insert(v.second.data()); </pre><p> In: <a href="http://www.boost.org/doc/libs/1_46_1/doc/html/boost/property_tree/basic_ptree.html">http://www.boost.org/doc/libs/1_46_1/doc/html/boost/property_tree/basic_ptree.html</a> </p> <p> The documentation for </p> <pre class="wiki">template&lt;typename Type&gt; self_type &amp; add(const path_type &amp; path, const Type &amp; value); </pre><p> says <strong>Set the newly created node's value to the given paremeter, translated with the supplied translator</strong>, but there is no translator argument. Replace with <strong>translated using the default translator</strong> or <strong>translated to the tree's data type</strong> or something like that. Also fix the <strong>paremeter</strong> typos. </p> <p> The comment for </p> <pre class="wiki">template&lt;typename Type, typename Translator&gt; self_type &amp; put(const path_type &amp; path, const Type &amp; value, Translator tr) </pre><p> should probably say <strong>translated with the supplied translator</strong> to distinguish this method from the default translator version. </p> <p> Remove the quoting of &lt; and &gt; in the code explaining the get_optional() methods. </p> <pre class="wiki">if(optional\&lt;const self_type&amp;\&gt; node = get_child_optional(path)) </pre><p> In: <a href="http://www.boost.org/doc/libs/1_46_1/doc/html/boost_propertytree/parsers.html#boost_propertytree.parsers.json_parser">http://www.boost.org/doc/libs/1_46_1/doc/html/boost_propertytree/parsers.html#boost_propertytree.parsers.json_parser</a> </p> <p> There is a bad trailing comma in this line of the example: </p> <pre class="wiki">{"value": "Open", "onclick": "OpenDoc()"}, </pre> </description> <category>Ticket</category> </item> <item> <author>monsta@…</author> <pubDate>Tue, 06 Sep 2011 06:52:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3925#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3925#comment:6</guid> <description> <p> The description of translators is still basically non-existent as of Boost 1.47. I've managed to figure out most of the internal mechanics by scrutinizing id_translator.hpp and stream_translator.hpp, but I guess that's not acceptable for everyone. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 21 Mar 2012 09:55:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3925#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3925#comment:7</guid> <description> <p> Still the same as of Boost 1.49. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 20 Dec 2013 10:47:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3925#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3925#comment:8</guid> <description> <p> Hey, still the same in Boost 1.55. Is there a maintainer? Should we elect a new one? </p> </description> <category>Ticket</category> </item> </channel> </rss>