Compare commits

..

3 Commits

Author SHA1 Message Date
94abfb32b8 Create a branch for documentation work.
[SVN r44584]
2008-04-19 14:48:18 +00:00
24117db3ae Include <ios> to get std::boolalpha. Fixes #1586
[SVN r42972]
2008-01-25 21:07:14 +00:00
15b34d0bf4 Fix warnings from GCC 4.3. Fixes #1337
[SVN r40299]
2007-10-22 19:37:05 +00:00
2 changed files with 3 additions and 2 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,6 +8,7 @@
#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>