From: Joel de Guzman (djowel_at_[hidden])
Date: 2003-09-01 14:58:17
Gregory Colvin <gregory.colvin_at_[hidden]> wrote:
> On Monday, Sep 1, 2003, at 11:31 America/Denver, Joel de Guzman wrote:
>> Fernando Cacciola <fernando_cacciola_at_[hidden]> wrote:
>>> vector<>::begin returns an object with operators * and ->,
>>> yet these objects are not pointers, and once that is learned,
>>> people do not think they are pointers.
>> Huh? pointer semantics (behavior) does not mean that they
>> have to be pointers.
> But would the following hold if p and q are optionl<int>?
> *q = 1;
> p = q;
> *p = 2;
> assert(*q == 2);
No, because the model is half-baked, which is exactly the reason
for my dislike.
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk