Opened 12 years ago

Closed 12 years ago

#4996 closed Bugs (invalid)

Bug in boost/algorithm/string

Reported by: dix75@… Owned by: Pavol Droba
Milestone: To Be Determined Component: string_algo
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc:

Description

I have bug in function is_lower. Kubuntu 10.10 x32 gcc 4.5

std::string str ="hello world";
std::cout << str << " " << (boost::all(str,boost::is_lower()) ? "is " : "is not") << " written in the lower case" << std::endl;

hello world is not written in the lower case
?????

Change History (1)

comment:1 by Steven Watanabe, 12 years ago

Resolution: invalid
Status: newclosed

You're asking whether every character in the string "hello world" is a lower case character. A space is not a lower case character, thus the result is false.

Note: See TracTickets for help on using tickets.