Opened 10 years ago
Closed 10 years ago
#6840 closed Bugs (fixed)
Mistake in Boost 1.49 String Algorithm Documentation
Reported by: | Owned by: | Marshall Clow | |
---|---|---|---|
Milestone: | Boost 1.50.0 | Component: | string_algo |
Version: | Boost 1.49.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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
Fixed in [78393]. Will close ticket when merged to release.