ADL

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 13:29:51 PDT 2016


On 9/3/2016 6:04 AM, Andrei Alexandrescu wrote:
> This only works with the respective modules do define `func`. We need something
> that conditionally plants the symbol depending on whether the module defines it
> or not. -- Andrei


That's where __traits(compiles, ...) comes in. It can be encapsulated in another 
template.



More information about the Digitalmars-d mailing list