[patch] Constrain allocator_arg_t to only work with valid Allocators

Jonathan Wakely jwakely@redhat.com
Tue Jun 30 15:02:00 GMT 2015

On 30/06/15 15:49 +0100, Jonathan Wakely wrote:
>I'm also playing with another change to make allocator_traits<A>
>SFINAE-friendly, by only defining the nested allocator_type member
>when __is_allocator<A> is true. If it works I think that might be
>worth standardising.

Something like this, although with the __alloc_arg_t helper I don't
have an immediate use for a SFINAE-friendly allocator_traits.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1520 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150630/2e66a3ac/attachment.bin>

More information about the Libstdc++ mailing list