Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-01-27 14:03:14


"David Abrahams" <dave_at_[hidden]> wrote in message:
> "Jonathan Turkanis" <technews_at_[hidden]>:

> > I think there will almost certianly be a compiler error if
somepone
> > tries to pass an array pointer, since the dereferencing operations
are
> > not supported.
>
> Seriously? Why not?

Because it's more fun to implement that way :-)

> It seems as though dereferencing should be
> fine. And incidentally, upcasting should be fine, too:
>
> S_ptr<D[]> -> S_ptr<B>
>
> ;-)

Seriously, maybe this is an indictment of the concept of smart
pointers to arrays. It's nice to say we want smart pointers to arrays
to behave like ordinary arrays -- but ordinary arrays are really
wierd! ;-)

Jonathan


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