Printing type name in static assert

Jason White 54f9byee3t32 at gmail.com
Sat Jan 25 03:41:53 PST 2014


I think what you are looking for is Class.stringof:

     template XYZ(Class)
     {
         // ...
         static assert(index != -1,
             "No such annotation on "~ Class.stringof)
             );
         // ...
     }


More information about the Digitalmars-d mailing list