From: Gregory Colvin (gregory.colvin_at_[hidden])
Date: 2003-09-01 13:53:40
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);
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk