Re: [boost] [pimpl] Proposal. Determining interest.

I've downloaded it, read the documentation, and I think it looks promising.
To test it out I'm converting a pimpled class in my code base to use your library. This class is noncopyable and as such it isn't immediately
obvious to me whether the class should be modeled using the pimpl's value semantics, pointer semantics, or some other semantic that doesn't yet exist.
Thanks,
Michael Marcin
Achieving non-copyability seems as straightforward as struct Foo : public pimpl<Foo>::pointer_semantics, boost::noncopyable { }; Thanks, Vladimir.

Vladimir.Batov@wrsa.com.au wrote:
I've downloaded it, read the documentation, and I think it looks promising. To test it out I'm converting a pimpled class in my code base to use your library. This class is noncopyable and as such it isn't immediately
obvious to me whether the class should be modeled using the pimpl's value semantics, pointer semantics, or some other semantic that doesn't yet exist.
Thanks,
Michael Marcin
Achieving non-copyability seems as straightforward as
struct Foo : public pimpl<Foo>::pointer_semantics, boost::noncopyable { };
Does this not use shared_ptr under the hood still? Isn't that a bit inefficient? Thanks, Michael Marcin
participants (2)
-
Michael Marcin
-
Vladimir.Batov@wrsa.com.au