mirror of
https://github.com/boostorg/container.git
synced 2026-02-27 17:02:15 +00:00
- Replaced default standard exception classes with Boost.Container own classes, reducing considerably the included files overhead
This commit is contained in:
@@ -52,7 +52,12 @@ struct null_memory_resource_imp
|
||||
void* do_allocate(std::size_t bytes, std::size_t alignment) BOOST_OVERRIDE
|
||||
{
|
||||
(void)bytes; (void)alignment;
|
||||
#if defined(BOOST_CONTAINER_USER_DEFINED_THROW_CALLBACKS) || defined(BOOST_NO_EXCEPTIONS)
|
||||
throw_bad_alloc();
|
||||
#else
|
||||
throw std::bad_alloc();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user