user1470393
user1470393

Reputation: 327

wield boost_check results

the same boost_check command gives me different results in different files.

I have the same following code in three different files.

 boost_check ("bb" < "bbb" )  ;

While two of them pass, one of them failed. the one that didn't pass associate with a class using boost::shared_ptr (v:1_41_0);

Can anyone help me on this?

Upvotes: 0

Views: 66

Answers (1)

Marshall Clow
Marshall Clow

Reputation: 16670

"bb" and "bbb" are of type const char *

When you compare them, you are comparing the pointers, not the strings. Which one is less depends on lots of other things, determined at compile time.

Upvotes: 2

Related Questions