Boost logo

Boost Users :

From: Ferdinand Prantl (prantlf_at_[hidden])
Date: 2008-07-09 14:36:51

On Wed, Jul 9, 2008 at 7:25 PM, <peter_foelsche_at_[hidden]> wrote:
>> I don't know, but it makes sense to me: an array is not just a pointer!
>> boost::any always stores a /copy/ of its constructor argument or assignment
>> argument. So /if/ it would support built-in arrays, I think it should copy
>> their elements internally.
> A C++ programmer expects that a pointer is being passed everywhere where he is passing an array argument.

Yes it is. But the type is different and can be accepted and handled
differently if it makes sense.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at