determining type a pointer points to.

Jarrett Billingsley jarrett.billingsley at gmail.com
Sat Aug 22 15:12:03 PDT 2009


On Sat, Aug 22, 2009 at 5:58 PM, div0<div0 at 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"); }


More information about the Digitalmars-d-learn mailing list