On Sat, Aug 22, 2009 at 5:58 PM, div0<d...@users.sourceforge.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Is there a function to do this? > I Didn't find anything in traits or std.traits > > ty
template PtrElemType(T : T*) { alias T PtrElemType; } template PtrElemType(T) { static assert(false, "YOU FAIL"); }