Boost logo

Boost :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-03-24 10:57:36


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

On Monday 24 March 2008 10:36 am, Tim Blechmann wrote:
> >> the changes break the following code, though (maybe this can be added
> >> to the shared_from_this_test.cpp test suite?):
> >>
> >> struct V: public boost::enable_shared_from_this<V> {};
> >>
> >> struct W: V
> >> {};
> >>
> >> void test4(void)
> >> {
> >> W * w = new W();
> >> boost::shared_ptr<W> p(w);
> >> }
> >
> > You'll have to be more specific about the problem you're encountering,
> > and what compiler you're using. The code compiles cleanly for me.
>
> complete code:
> http://tim.klingt.org/git?p=boost.git;a=blob;f=libs/smart_ptr/test/
> shared_from_this_test.cpp

Ah, I'm seeing the problem now. Actually, I was using the wrong include path
before. I'll see if I can resolve it. And yes, I agree your test snippet
should be added either to shared_from_this_test, or esft_regtest.

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

iD8DBQFH58Fh5vihyNWuA4URAlL4AKDMAwGmIHKAyiqHRlVTEJlMIj6BDgCfWJHv
CmK/z9CddmDDOiYIiIEcVWU=
=ccGT
-----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