summaryrefslogtreecommitdiff
path: root/boost/container/new_allocator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/container/new_allocator.hpp')
-rw-r--r--boost/container/new_allocator.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/container/new_allocator.hpp b/boost/container/new_allocator.hpp
index 9304a9cfa4..51065efa73 100644
--- a/boost/container/new_allocator.hpp
+++ b/boost/container/new_allocator.hpp
@@ -140,9 +140,9 @@ class new_allocator
//!Throws std::bad_alloc if there is no enough memory
pointer allocate(size_type count)
{
- if(BOOST_UNLIKELY(count > this->max_size()))
- throw_bad_alloc();
- return static_cast<T*>(::operator new(count*sizeof(T)));
+ if(BOOST_UNLIKELY(count > this->max_size()))
+ throw_bad_alloc();
+ return static_cast<T*>(::operator new(count*sizeof(T)));
}
//!Deallocates previously allocated memory.