Boost logo

Boost :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-03-19 16:10:46


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 19 March 2008 15:17 pm, Peter Dimov wrote:
> Frank Mori Hess:
> > Here's a proof-of-concept patch to svn trunk for
> > enable_shared_from_this.hpp
> > and shared_ptr.hpp.
>
> + _internal_shared_this(static_cast<T*>(this),
> &_internal_shared_this_deleter, detail::ignore_shared_from_this_tag()),
>
> Does this pass shared_from_this_test?

The first version I posted to the mailing list does not. The version I put in
trac does (it does a lazy dynamic_cast). I've made some more changes today,
and my local version passes the get_deleter_test (modified to run with either
the old X class or a new Y class derived from enable_shared_from_this). I'll
put an updated patch with what I have now in trac sometime in the next hour.

- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH4XNH5vihyNWuA4URAhtCAJ451+46OOOgWo7MI2PPOrKCgulENwCgq69E
pOD9YcZ2N0/gbhCUBr/FpKc=
=JGgd
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk