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:
parent
68e6308066
commit
c5effadb2a
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue