I am learning boost :: tribool and was surprised by the following behavior.
{
using namespace boost;
boost::tribool t(indeterminate);
assert(t==indeterminate);
}
However, if I do, approval will pass.
assert(indeterminate(t));
There are no warnings or compiler errors in any way. Does anyone have a good explanation why this should be?
Roddy source
share