IsValueType template? std.traits.hasAliasing?
bearophile
bearophileHUGS at lycos.com
Tue Jan 27 18:26:38 PST 2009
Bill Baxter Wrote:
> Does anyone have a good template for checking if a struct is
> semantically a pure value type or not?
I think IsReferenceType in the templates module of my dlibs may be fit:
http://www.fantascienza.net/leonardo/so/dlibs/templates.html
Code:
http://www.fantascienza.net/leonardo/so/libs_d.zip
(Works with D1, Phobos).
Bye,
bearophile
More information about the Digitalmars-d
mailing list