]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/container/test/vector_options_test.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / container / test / vector_options_test.cpp
index 9b414fb8dccb0d2d87bf56f56472862c2a4c41fc..f33cd79ada2cf78ad65d77a08fd3df44ac411d39 100644 (file)
@@ -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>