Compare commits

..

1 Commits

Author SHA1 Message Date
dd40add326 Created a branch from trunk
[SVN r38959]
2007-08-26 05:34:35 +00:00
2 changed files with 2 additions and 3 deletions

View File

@ -336,7 +336,7 @@ inline tribool operator==(tribool x, tribool y)
if (indeterminate(x) || indeterminate(y)) if (indeterminate(x) || indeterminate(y))
return indeterminate; return indeterminate;
else else
return (x && y) || (!x && !y); return x && y || !x && !y;
} }
/** /**
@ -399,7 +399,7 @@ inline tribool operator!=(tribool x, tribool y)
if (indeterminate(x) || indeterminate(y)) if (indeterminate(x) || indeterminate(y))
return indeterminate; return indeterminate;
else else
return !((x && y) || (!x && !y)); return !(x && y || !x && !y);
} }
/** /**

View File

@ -8,7 +8,6 @@
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <iostream> #include <iostream>
#include <ios> // for std::boolalpha
#ifndef BOOST_NO_STD_LOCALE #ifndef BOOST_NO_STD_LOCALE
# include <locale> # include <locale>