-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jarrett Billingsley wrote: > On Sat, Aug 22, 2009 at 5:58 PM, div0<[email protected]> 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"); }
That's the one. ta. For some reason I was convinced it would be in phobos. doh. - -- My enormous talent is exceeded only by my outrageous laziness. http://www.ssTk.co.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFKkRfQT9LetA9XoXwRAgy8AJ4hSpVzBejUoMjpU8sMpxIO9EvZGwCggVxP 8lSr6zpQDoq354uleXj6KHE= =xpXv -----END PGP SIGNATURE-----
