David Abrahams wrote: > > "Peter Dimov" <[EMAIL PROTECTED]> writes: > > > From: "Daniel Frey" <[EMAIL PROTECTED]> > > > >> 'get' implies (at least to me), that it only fetches a pointer/reference > >> to something which already exists. > > > > In a way, this is exactly what make_shared/get_shared_ptr does; it > > fetches a pointer to something which already exists, the object. > > I think you misunderstand Daniel here. get_... comes with an > implication that it returns an lvalue which already exists, i.e. that > the resulting shared_ptr is already there somewhere inside the > weak_ptr.
Indeed I was thinking along these lines, at least from the sematic point of view. What the function does internally is not that important, but the result is, that a get()-call "promises" that it can never fail IMHO. Regards, Daniel -- Daniel Frey aixigo AG - financial training, research and technology Schloß-Rahe-Straße 15, 52072 Aachen, Germany fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99 eMail: [EMAIL PROTECTED], web: http://www.aixigo.de _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost