Static if to compare two types are the exact same

Jonathan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 6 12:16:33 PDT 2015


What's the best way to do this? I'm assuming this should be best 
practice:
http://dlang.org/traits.html#isSame

struct S { }
writeln(__traits(isSame, S, S));


More information about the Digitalmars-d-learn mailing list