
Hi Mathias, ----- Original Message ----- From: "Mathias Gaunard" <mathias.gaunard@ens-lyon.org> To: <boost@lists.boost.org> Sent: Thursday, October 15, 2009 3:52 PM Subject: Re: [boost] How to get the size of an C-array?
vicente.botet wrote:
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.
Sorry but I dont understand your pourpose. What types with destructors have to be with my question. Please could you clarify? Thanks, Vicente