mirror of
https://github.com/boostorg/logic.git
synced 2025-06-26 12:31:40 +02:00
Compare commits
8 Commits
svn-branch
...
boost-1.35
Author | SHA1 | Date | |
---|---|---|---|
6a7afdee60 | |||
f1d8f513bf | |||
9db33f9dcf | |||
02caed268b | |||
5749fb9ef1 | |||
03a2600bf5 | |||
9e9489c7bd | |||
73cce598c7 |
@ -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