Boost logo

Boost :

Subject: Re: [boost] How to get the size of an C-array?
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-10-15 15:18:17


Hi Mathias,
----- Original Message -----
From: "Mathias Gaunard" <mathias.gaunard_at_[hidden]>
To: <boost_at_[hidden]>
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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk