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;
}
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;
}