Use braces to force correct parsing.
Without this, clang thinks it is a declaration, not a function call.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user