[Issue 16390] __traits not accepted where a type is expected
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Aug 15 09:06:43 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=16390
b2.temp at gmx.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com
--- Comment #1 from b2.temp at gmx.com ---
This is really common to use typeof() on the result of a __traits()
template ParentType(T)
{
    alias ParentType = typeof(__traits(parent, T));
}
--
    
    
More information about the Digitalmars-d-bugs
mailing list