Boost C++ Libraries: Ticket #6840: Mistake in Boost 1.49 String Algorithm Documentation https://svn.boost.org/trac10/ticket/6840 <p> I found an error in the documentation for Boost String Algorithms (1.49)<a href="http://www.boost.org/doc/libs/1_49_0/doc/html/string_algo/usage.html">http://www.boost.org/doc/libs/1_49_0/doc/html/string_algo/usage.html</a> Error: char text1[]="hello world!"; </p> <blockquote> <p> cout </p> <blockquote> <p> &lt;&lt; text1 &lt;&lt; (all( text1, is_lower() )? "is": "is not") &lt;&lt; " written in the lower case" &lt;&lt; endl; <em> prints "hello world! is written in the lower case" </em></p> </blockquote> </blockquote> <p> The example shown above says "prints "hello world! is written in the lower case"", but because text1 has spaces, it will print "prints "hello world! is written in the lower case"". </p> <p> Also, I noticed that false bug reports were submitted because of the error in the documentation. <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/4996"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/4996</a> <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/4997"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/4997</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6840 Trac 1.4.3 Marshall Clow Wed, 09 May 2012 17:13:32 GMT milestone changed https://svn.boost.org/trac10/ticket/6840#comment:1 https://svn.boost.org/trac10/ticket/6840#comment:1 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.50.0</span> </li> </ul> <p> Fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/78393" title="Fixed error in string docs">[78393]</a>. Will close ticket when merged to release. </p> Ticket Marshall Clow Wed, 23 May 2012 16:25:51 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6840#comment:2 https://svn.boost.org/trac10/ticket/6840#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/78557" title="Merged changes for Boost.Algorithm to release; Fixes #6596; Fixes ...">[78557]</a>) Merged changes for Boost.Algorithm to release; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6596" title="#6596: Bugs: Docs bug in boost_1_49_0_beta1/doc/html/boost/algorithm/find_head.html (closed: fixed)">#6596</a>; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6689" title="#6689: Bugs: For String Algo's trim, documentation is misleading. (closed: fixed)">#6689</a>; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3215" title="#3215: Feature Requests: Clamp function (closed: fixed)">#3215</a>; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6840" title="#6840: Bugs: Mistake in Boost 1.49 String Algorithm Documentation (closed: fixed)">#6840</a> </p> Ticket