Boost.Test: problem with BOOST_CHECK_EQUAL for negative chars
25 Oct
2007
25 Oct
'07
6:58 p.m.
The following causes a fatal error (at least for me): char c1 = -2; char c2 = -2; BOOST_CHECK_EQUAL(c1, c2); The message is: Assertion failed: (unsigned)(c + 1) <= 256 Thanks, Mignon
26 Oct
26 Oct
5:31 a.m.
New subject: Boost.Test: problem with BOOST_CHECK_EQUAL fornegative chars
"Mignon Belongie"
The following causes a fatal error (at least for me):
char c1 = -2; char c2 = -2; BOOST_CHECK_EQUAL(c1, c2);
The message is: Assertion failed: (unsigned)(c + 1) <= 256
I've put a fix into source, even though it's not really Boost.Test problem. This is an error message produced by isprint. Gennadiy
6225
Age (days ago)
6226
Last active (days ago)
1 comments
2 participants
participants (2)
-
Gennadiy Rozental
-
Mignon Belongie