Compare commits

...

3 Commits

Author SHA1 Message Date
Daniel James
2dddc5c911 Merge.
[SVN r43063]
2008-02-03 10:35:18 +00:00
Daniel James
7428061d66 Create a branch to fix links on.
[SVN r41573]
2007-12-02 10:07:42 +00:00
Douglas Gregor
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>