overloads and parents. __traits confusion

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 11 22:23:52 PDT 2014


On Monday, 11 August 2014 at 13:00:27 UTC, John Colvin wrote:
>     alias Parent = TypeTuple!(__traits(parent, foo!float))[0];

Say hello to optional parens - you are trying to call foo!float() 
here and apply result to trait.


More information about the Digitalmars-d-learn mailing list