diff --git a/include/boost/container/throw_exception.hpp b/include/boost/container/throw_exception.hpp index e09f423..59eaba6 100644 --- a/include/boost/container/throw_exception.hpp +++ b/include/boost/container/throw_exception.hpp @@ -37,15 +37,15 @@ namespace container { #if defined(BOOST_CONTAINER_USER_DEFINED_THROW_CALLBACKS) //The user must provide definitions for the following functions - void throw_bad_alloc(); + BOOST_NORETURN void throw_bad_alloc(); - void throw_out_of_range(const char* str); + BOOST_NORETURN void throw_out_of_range(const char* str); - void throw_length_error(const char* str); + BOOST_NORETURN void throw_length_error(const char* str); - void throw_logic_error(const char* str); + BOOST_NORETURN void throw_logic_error(const char* str); - void throw_runtime_error(const char* str); + BOOST_NORETURN void throw_runtime_error(const char* str); #elif defined(BOOST_NO_EXCEPTIONS)