
15 Oct
2009
15 Oct
'09
1:52 p.m.
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.