Re: Need help to compile code with traits

2017-02-05 Thread Xavier Bigand via Digitalmars-d-learn
Le 05/02/2017 à 18:32, Basile B. a écrit : On Sunday, 5 February 2017 at 14:59:04 UTC, Xavier Bigand wrote: Hi, I am trying to create an allocator that don't use the GC, and I have issues for the initialization of member before calling the constructor. Here is my actual code : mixin template N

Re: Need help to compile code with traits

2017-02-05 Thread Basile B. via Digitalmars-d-learn
On Sunday, 5 February 2017 at 14:59:04 UTC, Xavier Bigand wrote: Hi, I am trying to create an allocator that don't use the GC, and I have issues for the initialization of member before calling the constructor. Here is my actual code : mixin template NogcAllocator(T) { static T

Need help to compile code with traits

2017-02-05 Thread Xavier Bigand via Digitalmars-d-learn
Hi, I am trying to create an allocator that don't use the GC, and I have issues for the initialization of member before calling the constructor. Here is my actual code : mixin template NogcAllocator(T) { static TnogcNew(T, Args...)(Args args) @nogc { imp