Why can't structs be derived from?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Tue Mar 15 17:35:13 PDT 2011
I've spotted this in QtD's codebase, dunno if this works:
T static_cast(T, U)(U obj)
{
return cast(T)cast(void*)obj;
}
More information about the Digitalmars-d
mailing list