Boost C++ Libraries: Ticket #11409: Inconsistent documentation between the source code and its tutorial https://svn.boost.org/trac10/ticket/11409 <p> The tutorial given at <a href="http://www.boost.org/doc/libs/1_58_0/libs/filesystem/doc/tutorial.html#Using-path-decomposition">http://www.boost.org/doc/libs/1_58_0/libs/filesystem/doc/tutorial.html#Using-path-decomposition</a> is inconsistent with its tutorial. </p> <pre class="wiki">cout &lt;&lt; " " &lt;&lt; *it &lt;&lt; '\n'; </pre><p> outputs the complete path of the file rather than just its name as is shown in its example output. </p> <p> Therefore, the correct statement should be -: </p> <pre class="wiki">cout &lt;&lt; " " &lt;&lt; it-&gt;filename() &lt;&lt; '\n'; </pre><p> The accompanying explanation is changed accordingly as well. </p> <p> I have already created a pull request for this -: <a class="ext-link" href="https://github.com/boostorg/filesystem/pull/11/commits"><span class="icon">​</span>https://github.com/boostorg/filesystem/pull/11/commits</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11409 Trac 1.4.3 Beman Dawes Mon, 27 Jul 2015 13:21:51 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11409#comment:1 https://svn.boost.org/trac10/ticket/11409#comment:1 <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> Thanks for the report. It caused me to rework the tutorial to modernize it and fix both this problem and a number of other problems. </p> <p> The revised tutorial should ship as part of Boost 1.59.0 in a week or two. </p> <p> --Beman </p> Ticket