Re: [PATCH] Enforce allocator::value_type consistency for containers in C++2a

2019-06-06 Thread Jonathan Wakely
On 06/06/19 14:36 +0100, Jonathan Wakely wrote: On 03/06/19 14:23 +0100, Jonathan Wakely wrote: In previous standards it is undefined for a container and its allocator to have a different value_type. Libstdc++ has traditionally allowed it as an extension, automatically rebinding the allocator

Re: [PATCH] Enforce allocator::value_type consistency for containers in C++2a

2019-06-06 Thread Jonathan Wakely
On 03/06/19 14:23 +0100, Jonathan Wakely wrote: In previous standards it is undefined for a container and its allocator to have a different value_type. Libstdc++ has traditionally allowed it as an extension, automatically rebinding the allocator to the container's value_type. Since GCC 8.1 that

Re: [PATCH] Enforce allocator::value_type consistency for containers in C++2a

2019-06-03 Thread Jonathan Wakely
On 03/06/19 22:34 +0100, Jonathan Wakely wrote: On 03/06/19 23:17 +0200, Rainer Orth wrote: Hi Jonathan, In previous standards it is undefined for a container and its allocator to have a different value_type. Libstdc++ has traditionally allowed it as an extension, automatically rebinding the

Re: [PATCH] Enforce allocator::value_type consistency for containers in C++2a

2019-06-03 Thread Jonathan Wakely
On 03/06/19 23:17 +0200, Rainer Orth wrote: Hi Jonathan, In previous standards it is undefined for a container and its allocator to have a different value_type. Libstdc++ has traditionally allowed it as an extension, automatically rebinding the allocator to the container's value_type. Since

Re: [PATCH] Enforce allocator::value_type consistency for containers in C++2a

2019-06-03 Thread Rainer Orth
Hi Jonathan, > In previous standards it is undefined for a container and its allocator > to have a different value_type. Libstdc++ has traditionally allowed it > as an extension, automatically rebinding the allocator to the > container's value_type. Since GCC 8.1 that extension has been disabled

[PATCH] Enforce allocator::value_type consistency for containers in C++2a

2019-06-03 Thread Jonathan Wakely
In previous standards it is undefined for a container and its allocator to have a different value_type. Libstdc++ has traditionally allowed it as an extension, automatically rebinding the allocator to the container's value_type. Since GCC 8.1 that extension has been disabled for C++11 and later