Boost logo

Boost :

Subject: Re: [boost] [pimpl] Some comments
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2014-06-07 10:08:30

On June 7, 2014 8:05:39 AM EDT, Andrzej Krzemienski <akrzemi1_at_[hidden]> wrote:
>2014-06-06 3:51 GMT+02:00 Vladimir Batov
>> On 06/06/2014 07:21 AM, Andrzej Krzemienski wrote:
>I still claim that pimpl::pointer_semantics breaches value semantics
>expectations in an unprecedented way. Both non-const refs and
>and raw pointer and normal value semantic classes have one property in
>common: Their operator== reflects their *salient attributes*. Sorry for
>fancy term. I borrowed it from John Lakos:

The point of the Pimpl Idiom is to move what would be private data members out of the header. Any semantic thing you would have done, had the members been declared in the header, should be possible after applying the Pimpl Idiom. If value_semantics precludes proper equality comparisons, that's a major problem. If it doesn't preclude them, but changes the default behavior, relative to non-Pimpl classes, it's unfortunate.


(Sent from my portable computation engine)

Boost list run by bdawes at, gregod at, cpdaniel at, john at