diff --git a/include/boost/core/default_allocator.hpp b/include/boost/core/default_allocator.hpp index d13b93a..c269b85 100644 --- a/include/boost/core/default_allocator.hpp +++ b/include/boost/core/default_allocator.hpp @@ -78,9 +78,6 @@ struct default_allocator { if (n > max_size()) { boost::throw_exception(std::bad_alloc()); } - if (!n) { - return 0; - } void* p = ::operator new(sizeof(T) * n, std::nothrow); if (!p) { boost::throw_exception(std::bad_alloc());