Boost logo

Boost :

From: Dave Harris (brangdon_at_[hidden])
Date: 2004-09-28 08:16:47


In-Reply-To: <1256163046.20040926162826_at_[hidden]>
I'm very dubious about using:

     vec.begin()->bar();

instead of:

     (*vec.begin())->bar();

It means that ptr_vector<T> is not syntactically a drop-in replacement for
vector<T *> or vector<shared_ptr<T> >. Won't that make it unnecessarily
difficult to "upgrade" existing classes, and harder to switch back again
should the need arise? Doesn't it also obscure what is going on? It seems
a fundamentally wrong notation to me.

-- Dave Harris, Nottingham, UK


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