Subject: Re: [boost] How to get the size of an C-array?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-10-15 09:52:11
> Can someone in this list explain why the standard don't allows to recover the number of elements allocated by new? What is the deep reason?
I suppose the reason is to not introduce a distinction between types
with destructors and types without.
If this was to be provided, a meta-function to tell whether a type has a
trivial destructor or not would be needed as well.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk