forked from boostorg/logic
Compare commits
3 Commits
svn-branch
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
3781ee6709 | |||
24117db3ae | |||
15b34d0bf4 |
@ -336,7 +336,7 @@ inline tribool operator==(tribool x, tribool y)
|
||||
if (indeterminate(x) || indeterminate(y))
|
||||
return indeterminate;
|
||||
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))
|
||||
return indeterminate;
|
||||
else
|
||||
return !(x && y || !x && !y);
|
||||
return !((x && y) || (!x && !y));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <ios> // for std::boolalpha
|
||||
|
||||
#ifndef BOOST_NO_STD_LOCALE
|
||||
# include <locale>
|
||||
|
Reference in New Issue
Block a user