Remove tests that require C++03 to pass

This commit is contained in:
Peter Dimov
2019-11-06 03:09:54 +02:00
parent 8ec9323003
commit a7c28f6117
4 changed files with 12 additions and 7 deletions

View File

@@ -9,6 +9,7 @@
#include <boost/function.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config/workaround.hpp>
#include <functional>
#include <string>
#include <utility>
@@ -653,14 +654,14 @@ static void test_empty_ref()
f2();
BOOST_ERROR("Exception didn't throw for reference to empty function.");
}
catch(std::runtime_error const&) {}
catch(boost::bad_function_call const&) {}
f1 = dummy;
try {
f2();
}
catch(std::runtime_error const&) {
catch(boost::bad_function_call const&) {
BOOST_ERROR("Error calling referenced function.");
}
}