Boost logo

Boost :

From: Michael Marcin (mmarcin_at_[hidden])
Date: 2007-10-31 20:10:25


Vladimir.Batov_at_[hidden] 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


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