Is this a bug when creating proxies in classes?
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Aug 25 12:17:20 PDT 2014
On Monday, 25 August 2014 at 19:12:48 UTC, Marc Schütz wrote:
> On Monday, 25 August 2014 at 18:44:36 UTC, Ali Çehreli wrote:
>> It can be explained if the mixed-in template is evaluated at
>> the mixin context without bringing in the imported modules to
>> that context. I don't know whether it is true or whether it is
>> a known limitation.
>
> You're right, that's it! It works when I import std.traits
> first.
>
> So... the fix is to import std.traits inside template Proxy.
> Going to submit a PR.
https://github.com/D-Programming-Language/phobos/pull/2463
More information about the Digitalmars-d-learn
mailing list