Use braces to force correct parsing.

Without this, clang thinks it is a declaration, not a function call.
This commit is contained in:
Atgeirr Flø Rasmussen
2020-03-27 10:08:36 +01:00
parent 3e29350e94
commit 4c5b03b83e

View File

@@ -44,7 +44,7 @@ BOOST_AUTO_TEST_CASE(INSTANTIATE) {
*/
BOOST_CHECK(! Python::enabled() );
BOOST_CHECK_THROW( Python(Python::Enable::ON), std::logic_error );
BOOST_CHECK_THROW( Python{Python::Enable::ON}, std::logic_error );
Python python_cond(Python::Enable::COND);
BOOST_CHECK(!python_cond);