Gregory Colvin <[EMAIL PROTECTED]> wrote:
> 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);

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

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

Reply via email to