mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 14:04:26 +02:00
Merge branch 'mknejp-patch-1' into develop
This commit is contained in:
@@ -31,10 +31,10 @@ class new_delete_resource_imp
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
virtual void* do_allocate(std::size_t bytes, std::size_t alignment)
|
virtual void* do_allocate(std::size_t bytes, std::size_t alignment)
|
||||||
{ return new char[bytes]; (void)bytes; (void)alignment; }
|
{ (void)bytes; (void)alignment; return new char[bytes]; }
|
||||||
|
|
||||||
virtual void do_deallocate(void* p, std::size_t bytes, std::size_t alignment)
|
virtual void do_deallocate(void* p, std::size_t bytes, std::size_t alignment)
|
||||||
{ delete[]((char*)p); (void)bytes; (void)alignment; }
|
{ (void)bytes; (void)alignment; delete[]((char*)p); }
|
||||||
|
|
||||||
virtual bool do_is_equal(const memory_resource& other) const BOOST_NOEXCEPT
|
virtual bool do_is_equal(const memory_resource& other) const BOOST_NOEXCEPT
|
||||||
{ return &other == this; }
|
{ return &other == this; }
|
||||||
|
Reference in New Issue
Block a user