diff options
Diffstat (limited to 'libs/variant/test/test8.cpp')
-rw-r--r-- | libs/variant/test/test8.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/variant/test/test8.cpp b/libs/variant/test/test8.cpp index 0e64ba0d7..d228b4c6b 100644 --- a/libs/variant/test/test8.cpp +++ b/libs/variant/test/test8.cpp @@ -58,17 +58,17 @@ T& check_pass(Variant& v, T value) template <typename T, typename Variant> void check_fail(Variant& v) { - BOOST_CHECK(!get<T>(&v)); + BOOST_CHECK(!relaxed_get<T>(&v)); try { - T& r = get<T>(v); + T& r = relaxed_get<T>(v); (void)r; // suppress warning about r not being used BOOST_CHECK(false && &r); // should never reach } - catch(boost::bad_get&) + catch(const boost::bad_get& e) { - // (do nothing here) + BOOST_CHECK(!!e.what()); // make sure that what() is const qualified and returnes something } } |