Revert "Revert operator bool() to its pre-failed value() != 0 meaning"

This reverts commit 3164b387a5.
This commit is contained in:
Peter Dimov
2020-06-16 20:24:23 +03:00
parent 6942dc454b
commit 5d3365717e
3 changed files with 11 additions and 11 deletions

View File

@@ -123,13 +123,13 @@ template<class Ec> void test()
{
Ec ec( 0, http_category() );
BOOST_TEST( ec.failed() );
TEST_FAILED( ec );
ec.assign( 200, http_category() );
BOOST_TEST( !ec.failed() );
TEST_NOT_FAILED( ec );
ec = Ec( 404, http_category() );
BOOST_TEST( ec.failed() );
TEST_FAILED( ec );
}
}