mirror of git://gcc.gnu.org/git/gcc.git
2018-12-23 François Dumont <fdumont@gcc.gnu.org>
* libstdc++-v3/testsuite/util/testsuite_allocator.h (CustomPointerAlloc<>::allocate(size_t, pointer)): Replace by... (CustomPointerAlloc<>::allocate(size_t, const_void_pointer)): ...this. From-SVN: r267381
This commit is contained in:
parent
23d5fd6cd6
commit
4483dd3fa3
|
|
@ -1,5 +1,9 @@
|
||||||
2018-12-23 François Dumont <fdumont@gcc.gnu.org>
|
2018-12-23 François Dumont <fdumont@gcc.gnu.org>
|
||||||
|
|
||||||
|
* libstdc++-v3/testsuite/util/testsuite_allocator.h
|
||||||
|
(CustomPointerAlloc<>::allocate(size_t, pointer)): Replace by...
|
||||||
|
(CustomPointerAlloc<>::allocate(size_t, const_void_pointer)): ...this.
|
||||||
|
|
||||||
Respect pointer_traits on node deallocation in _ReuseOrAllocNode
|
Respect pointer_traits on node deallocation in _ReuseOrAllocNode
|
||||||
parenthesis operator.
|
parenthesis operator.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -582,7 +582,7 @@ namespace __gnu_test
|
||||||
typedef Ptr<void> void_pointer;
|
typedef Ptr<void> void_pointer;
|
||||||
typedef Ptr<const void> const_void_pointer;
|
typedef Ptr<const void> const_void_pointer;
|
||||||
|
|
||||||
pointer allocate(std::size_t n, pointer = {})
|
pointer allocate(std::size_t n, const_void_pointer = {})
|
||||||
{ return pointer(std::allocator<Tp>::allocate(n)); }
|
{ return pointer(std::allocator<Tp>::allocate(n)); }
|
||||||
|
|
||||||
void deallocate(pointer p, std::size_t n)
|
void deallocate(pointer p, std::size_t n)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue