forked from boostorg/smart_ptr
Add support and tests for C++11 minimal allocators
This commit is contained in:
1 parent
e8595a05af
commit
90e74511f7
7 files changed
+524
-6
No files matched your search
@@ -91,7 +91,7 @@ public:
|
||||
::operator delete( p );
|
||||
}
|
||||
|
||||
pointer allocate( size_type n, void const * )
|
||||
pointer allocate( size_type n, void const * = 0 )
|
||||
{
|
||||
T * p = static_cast< T* >( ::operator new( n * sizeof( T ) ) );
|
||||
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
|
||||
void construct( pointer p, T const & t )
|
||||
{
|
||||
new( p ) T( t );
|
||||
::new( p ) T( t );
|
||||
}
|
||||
|
||||
void destroy( pointer p )
|
||||
|
||||
Reference in new issue
Block a user