----- Original Message -----
From: "Peter Dimov" <[EMAIL PROTECTED]>
To: "Boost mailing list" <[EMAIL PROTECTED]>
Sent: Thursday, December 12, 2002 5:35 PM
Subject: Re: [boost] Formal review: Optional library


> From: "Peter Dimov" <[EMAIL PROTECTED]>
>
> Oops,
>
> > Yes it will. :-)
> >
> > optional<T> m;
>
> should have been
>
> optional<T> m(t);
>
> > foo(m, m); // comparison inside yields false
> >
Nop... :-)

it compares true because get_pointer(x)==get_poiner(x) is true for any x,
whether initialized or not.

In fact, this is the very reason why I choosen this definition. It matches
pointer aliasing.

Fernando Cacciola





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

Reply via email to