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

This commit is contained in:
Peter Dimov
2019-02-27 21:10:57 +02:00
parent 9753cf7668
commit 3164b387a5
3 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -123,13 +123,13 @@ template<class Ec> void test()
{
Ec ec( 0, http_category() );
TEST_FAILED( ec );
BOOST_TEST( ec.failed() );
ec.assign( 200, http_category() );
TEST_NOT_FAILED( ec );
BOOST_TEST( !ec.failed() );
ec = Ec( 404, http_category() );
TEST_FAILED( ec );
BOOST_TEST( ec.failed() );
}
}