[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost
Subject:    Re: [boost] [pimpl] Proposal. Determining interest.
From:       Michael Marcin <mmarcin () method-solutions ! com>
Date:       2007-11-01 0:10:25
Message-ID: fgb5hh$b70$1 () ger ! gmane ! org
[Download RAW message or body]

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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic