diff --git a/include/psi/vm/containers/allocator.hpp b/include/psi/vm/containers/allocator.hpp index 97eb87d..dbc20e0 100644 --- a/include/psi/vm/containers/allocator.hpp +++ b/include/psi/vm/containers/allocator.hpp @@ -26,7 +26,7 @@ namespace psi::vm { //------------------------------------------------------------------------------ -namespace detail { [[ noreturn, gnu::cold ]] void throw_bad_alloc(); } +namespace detail { [[ noreturn, gnu::cold ]] void throw_bad_alloc() PSI_NOEXCEPT_EXCEPT_BADALLOC; } class allocator_backing_mapping { diff --git a/src/containers/vm_vector.cpp b/src/containers/vm_vector.cpp index 8f7527b..f9ca5ef 100644 --- a/src/containers/vm_vector.cpp +++ b/src/containers/vm_vector.cpp @@ -29,7 +29,7 @@ namespace detail [[ noreturn, gnu::cold ]] void throw_bad_alloc () PSI_NOEXCEPT_EXCEPT_BADALLOC { # if PSI_MALLOC_OVERCOMMIT == PSI_OVERCOMMIT_Full - BOOST_ASSERT( !"Unexpected allocation failure" ); + BOOST_ASSERT_MSG( false, "Unexpected allocation failure" ); std::unreachable(); # else throw std::bad_alloc();