From: "Douglas Gregor" <[EMAIL PROTECTED]> > On Tuesday 21 January 2003 04:24 pm, David Abrahams wrote: > > Unai Uribarri <[EMAIL PROTECTED]> writes: > > > Currently, any_cast doesn't allow to cast to > > > references. Instead, you have obscure castings from > > > any* to T returning T*. > > > > That sounds like a design mistake on the face of it. > > This comment has come up before, and everyone seems to agree that we'd prefer > the semantics that Unai proposes. I think the only reason that we haven't > changed the semantics is that we don't want to change Kevlin's design without > hearing the reasons for the existing design.
The pointer cast returns NULL on failure, the value cast throws bad_any_cast. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost