Boost logo

Boost Users :

Subject: Re: [Boost-users] [Interprocess] Collection of base shared_ptr
From: Gordon Woodhull (gordon_at_[hidden])
Date: 2012-04-09 02:10:30


(on Boost.Variant and dynamic allocation)

On Apr 6, 2012, at 7:45 PM, Aaron_Wright_at_[hidden] wrote:
> Would raw pointers come into play? Would it depend on the contents of the structs?

Looks like you need nothrow copy constructors and to specialize some traits to label them as such.

See "Enabling Optimizations" in
http://www.boost.org/doc/libs/1_49_0/doc/html/variant/design.html#variant.design.never-empty

Cheers,
Gordon



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net