QA: Fix OPT::has_value error

boost::optional doesn't always have has_value, but it does always
have the bool operator.
This commit is contained in:
John Beard 2019-04-17 13:19:29 +01:00
parent 68e6308066
commit c5effadb2a
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ BOOST_AUTO_TEST_CASE( TestGetLayerName )
const OPT<std::string> ret = GetLayerName( *sexpr ); const OPT<std::string> ret = GetLayerName( *sexpr );
BOOST_CHECK_EQUAL( ret.has_value(), c.m_valid ); BOOST_CHECK_EQUAL( !!ret, c.m_valid );
if( ret ) if( ret )
{ {