Evaluate expression when BOOST_NO_EXCEPTIONS is defined

This commit is contained in:
Glen Fernandes
2020-05-02 09:34:29 -04:00
parent 6069fea76d
commit e9ff763d79
2 changed files with 2 additions and 3 deletions

View File

@ -220,8 +220,7 @@ If `BOOST_NO_EXCEPTIONS` is *not* defined and if `expr` throws an exception,
increases the error count and outputs a message containing the expression
and (if possible) the exception message.
If `BOOST_NO_EXCEPTIONS` is defined, this macro expands to nothing and `expr`
is not evaluated.
If `BOOST_NO_EXCEPTIONS` is defined, `expr` is evaluated.
[endsect]

View File

@ -494,7 +494,7 @@ inline int report_errors()
}
//
#else
# define BOOST_TEST_NO_THROW(EXPR)
# define BOOST_TEST_NO_THROW(EXPR) { EXPR; }
#endif
#endif // #ifndef BOOST_CORE_LIGHTWEIGHT_TEST_HPP