forked from boostorg/container
Make sure test suite/examples/bench compile with exceptions disabled (exception-handling=off)
This commit is contained in:
@@ -17,6 +17,7 @@ using namespace boost::container;
|
||||
template<class Unsigned, class VectorType>
|
||||
void test_stored_size_type_impl()
|
||||
{
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
VectorType v;
|
||||
typedef typename VectorType::size_type size_type;
|
||||
typedef typename VectorType::value_type value_type;
|
||||
@@ -29,6 +30,7 @@ void test_stored_size_type_impl()
|
||||
BOOST_TEST_THROWS(v.emplace(v.begin(), value_type(1)),std::exception);
|
||||
BOOST_TEST_THROWS(v.reserve(max+1), std::exception);
|
||||
BOOST_TEST_THROWS(VectorType v2(max+1), std::exception);
|
||||
#endif
|
||||
}
|
||||
|
||||
template<class Unsigned>
|
||||
|
||||
Reference in New Issue
Block a user