[Bug libstdc++/72792] allocator_traits is too strict about rebinding
ilg at livius dot net
gcc-bugzilla@gcc.gnu.org
Tue Feb 14 19:22:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792
--- Comment #9 from Liviu Ionescu <ilg at livius dot net> ---
My allocator was defined as:
using F = memory_resource* (void);
template<typename T, typename L, F get_resource>
class allocator_stateless_polymorphic_synchronized
I added the following inside the class:
template<typename U>
struct rebind
{
using other = allocator_stateless_polymorphic_synchronized<U, L,
get_resource>;
};
and apparently this avoided the bug.
Thank you for your help, highly appreciated.
Liviu
More information about the Gcc-bugs
mailing list