From c5effadb2a0a8fdd0d85bd241aac346b31ae6480 Mon Sep 17 00:00:00 2001 From: John Beard Date: Wed, 17 Apr 2019 13:19:29 +0100 Subject: [PATCH] QA: Fix OPT::has_value error boost::optional doesn't always have has_value, but it does always have the bool operator. --- qa/utils/kicad2step/pcb/test_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/utils/kicad2step/pcb/test_base.cpp b/qa/utils/kicad2step/pcb/test_base.cpp index f8e35d20b1..0a853ca5e9 100644 --- a/qa/utils/kicad2step/pcb/test_base.cpp +++ b/qa/utils/kicad2step/pcb/test_base.cpp @@ -189,7 +189,7 @@ BOOST_AUTO_TEST_CASE( TestGetLayerName ) const OPT ret = GetLayerName( *sexpr ); - BOOST_CHECK_EQUAL( ret.has_value(), c.m_valid ); + BOOST_CHECK_EQUAL( !!ret, c.m_valid ); if( ret ) {