[v3] use alias-declaration to complete allocator and pointer traits
Jonathan Wakely
jwakely.gcc@gmail.com
Tue Nov 8 00:34:00 GMT 2011
The new alias-declaration support in trunk allows the
std::pointer_traits and std::allocator_traits implementations to be
finished, by replacing the __rebind::__type workarounds with the
required alias-declarations.
* include/bits/ptr_traits.h (__rebind): Replace with...
(rebind): Implement using alias-declaration.
* include/ext/pointer.h (__rebind): Replace with...
(rebind): Implement using alias-declaration.
* include/bits/alloc_traits.h (__rebind_alloc, __rebind_traits):
Replace with...
(rebind_alloc, rebind_traits): Implement using alias-declaration.
* include/ext/alloc_traits.h (rebind): Use rebind_alloc instead of
__rebind_alloc.
* include/std/scoped_allocator (rebind): Likewise.
Tested x86_64-linux and x86_64-netbsd, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alias.patch
Type: text/x-patch
Size: 7207 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20111108/752975e6/attachment.bin>
More information about the Libstdc++
mailing list