diff --git a/src/global_resource.cpp b/src/global_resource.cpp index a7b77c2..ca2dc68 100644 --- a/src/global_resource.cpp +++ b/src/global_resource.cpp @@ -54,11 +54,10 @@ struct null_memory_resource_imp (void)bytes; (void)alignment; #if defined(BOOST_CONTAINER_USER_DEFINED_THROW_CALLBACKS) || defined(BOOST_NO_EXCEPTIONS) throw_bad_alloc(); + return 0; #else throw std::bad_alloc(); #endif - - return 0; } void do_deallocate(void* p, std::size_t bytes, std::size_t alignment) BOOST_OVERRIDE