Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-11 14:23:15


From: "David Abrahams" <david.abrahams_at_[hidden]>
> From: "Peter Dimov" <pdimov_at_[hidden]>
>
> > I find the whole idea of adding pointer arithmetic to shared_array
> > questionable at best and nonsensical at worst.
>
> Can you please provide some reasoning? I just want to understand some of
the
> objections, and so far no one has helped me to do that.

Why would anyone want pointer arithmetic for a shared_array? ;-)

I can understand the motivation behind scoped_array (std::vector too
inefficient, presumably) - although I've never encountered a situation where
std::vector doesn't work adequately.

But shared_array? Or going even further, a hybrid container/iterator
shared_array with pointer arithmetic? I find it hard to justify.

--
Peter Dimov
Multi Media Ltd.

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