boost  

Re: [boost] Re: Re: Optional, tie, and iterator_adaptor

Gregory Colvin
Mon, 01 Sep 2003 18:55:26 +0000


On Monday, Sep 1, 2003, at 11:31 America/Denver, Joel de Guzman wrote:


Fernando Cacciola <[EMAIL PROTECTED]> 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);

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost