mirror of
https://git.suyu.dev/suyu/ext-boost.git
synced 2025-12-21 21:26:07 +01:00
Update to boost v1.64.0
This commit is contained in:
parent
46a3f6dccf
commit
155d20ab3c
53 changed files with 573 additions and 243 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue