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

Reply via email to