Subject: [Boost-bugs] [Boost C++ Libraries] #6840: Mistake in Boost 1.49 String Algorithm Documentation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-27 21:55:19
#6840: Mistake in Boost 1.49 String Algorithm Documentation
--------------------------------------+-------------------------------------
Reporter: spe56nw9@⦠| Owner: marshall
Type: Bugs | Status: new
Milestone: To Be Determined | Component: string_algo
Version: Boost 1.49.0 | Severity: Problem
Keywords: |
--------------------------------------+-------------------------------------
I found an error in the documentation for Boost String Algorithms
(1.49)[http://www.boost.org/doc/libs/1_49_0/doc/html/string_algo/usage.html]
Error:
char text1[]="hello world!";
cout
<< text1
<< (all( text1, is_lower() )? "is": "is not")
<< " written in the lower case"
<< endl; // prints "hello world! is written in the lower case"
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"".
Also, I noticed that false bug reports were submitted because of the error
in the documentation. [https://svn.boost.org/trac/boost/ticket/4996]
[https://svn.boost.org/trac/boost/ticket/4997]
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6840> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC