Interesting PRs: bringing type system legitimacy to shared allocators

Stanislav Blinov via Digitalmars-d digitalmars-d at puremagic.com
Mon May 1 19:53:45 PDT 2017


On Tuesday, 2 May 2017 at 02:51:02 UTC, Stanislav Blinov wrote:

Lost one else. Should be

          static if (traits & (AllocatorTraits.sharedInstance |
  AllocatorTraits.noGC))
              @nogc shared { mixin AllocatorInterface!(); }
          else static if (traits & AllocatorTraits.sharedInstance)
              shared { mixin AllocatorInterface!(); }
          else static if (traits & AllocatorTraits.noGC)
              @nogc { mixin AllocatorInterface!(); }
          else
              mixin AllocatorInterface!();



More information about the Digitalmars-d mailing list