Boost logo

Boost :

Subject: Re: [boost] Interest in a "Heterogenous Container" system?
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-07-31 15:43:41


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

On Friday 31 July 2009, Mathias Gaunard wrote:
> A container of clone_ptr is a more elegant solution if you can't use
> move semantics, since it actually has the right ones. You may want to
> implement it using COW however since non move-aware containers can do a
> lot of spurious copies.

By the way, there is a cloning pointer included in the generic_ptr library
I've been working on recently:

https://svn.boost.org/trac/boost/browser/sandbox/fmhess/boost/generic_ptr

Still no docs, but at least I'm starting to add some tests. It should also be
possible (haven't actually tried it yet) to combine the cloning pointer it
with a shared pointer, like

generic_ptr::cloning<generic_ptr::shared<T*> >

to support a combination of deep and shallow copy handles, although you'd have
to pass the cloning a null deleter to prevent it from double-deleting the
owned object.

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

iEYEARECAAYFAkpzSW0ACgkQ5vihyNWuA4U8rgCdHtMpaV/kEl9Z58iVwrw+c42y
hwUAoJwb40mJHfAobIUV5MD/nARe8DWA
=OF/7
-----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