forked from boostorg/container
Fixes #200 (Warning)
This commit is contained in:
@ -54,11 +54,10 @@ struct null_memory_resource_imp
|
|||||||
(void)bytes; (void)alignment;
|
(void)bytes; (void)alignment;
|
||||||
#if defined(BOOST_CONTAINER_USER_DEFINED_THROW_CALLBACKS) || defined(BOOST_NO_EXCEPTIONS)
|
#if defined(BOOST_CONTAINER_USER_DEFINED_THROW_CALLBACKS) || defined(BOOST_NO_EXCEPTIONS)
|
||||||
throw_bad_alloc();
|
throw_bad_alloc();
|
||||||
|
return 0;
|
||||||
#else
|
#else
|
||||||
throw std::bad_alloc();
|
throw std::bad_alloc();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_deallocate(void* p, std::size_t bytes, std::size_t alignment) BOOST_OVERRIDE
|
void do_deallocate(void* p, std::size_t bytes, std::size_t alignment) BOOST_OVERRIDE
|
||||||
|
Reference in New Issue
Block a user