From: "Fernando Cacciola" <[EMAIL PROTECTED]> > > optional<T> m(t); > > > > > foo(m, m); // comparison inside yields false
where foo is void foo(optional<T> const &, optional<T> const &); > > > > Nop... :-) > > it compares true because get_pointer(x)==get_poiner(x) is true for any x, > whether initialized or not. True. Had foo been void foo(optional<T>, optional<T>); or had the call been foo(optional<T>(t), optional<T>(t)); // corresponds to foo(&t, &t) I would have been right. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost