Opened 10 years ago

Closed 10 years ago

#6840 closed Bugs (fixed)

Mistake in Boost 1.49 String Algorithm Documentation

Reported by: spe56nw9@… 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

Change History (2)

comment:1 by Marshall Clow, 10 years ago

Milestone: To Be DeterminedBoost 1.50.0

Fixed in [78393]. Will close ticket when merged to release.

comment:2 by Marshall Clow, 10 years ago

Resolution: fixed
Status: newclosed

(In [78557]) Merged changes for Boost.Algorithm to release; Fixes #6596; Fixes #6689; Fixes #3215; Fixes #6840

Note: See TracTickets for help on using tickets.