diff --git a/test/small_vector_test.cpp b/test/small_vector_test.cpp index 80c3a4e..3567fd1 100644 --- a/test/small_vector_test.cpp +++ b/test/small_vector_test.cpp @@ -544,18 +544,12 @@ int main() // default allocator { typedef boost::container::small_vector cont; - if (boost::has_trivial_destructor_after_move::value) { - std::cerr << "has_trivial_destructor_after_move(default allocator) test failed" << std::endl; - return 1; - } + BOOST_CONTAINER_STATIC_ASSERT(!boost::has_trivial_destructor_after_move::value); } // std::allocator { typedef boost::container::small_vector > cont; - if (boost::has_trivial_destructor_after_move::value) { - std::cerr << "has_trivial_destructor_after_move(std::allocator) test failed" << std::endl; - return 1; - } + BOOST_CONTAINER_STATIC_ASSERT(!boost::has_trivial_destructor_after_move::value); } return 0;