Boost logo

Boost :

Subject: Re: [boost] [pimpl] No documentation for pointer semantics
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2014-06-07 09:53:34


On June 7, 2014 5:43:14 AM EDT, Vladimir Batov <vb.mail.247_at_[hidden]> wrote:
>
>I glanced over his pimpl::value_semantics generalization at
>http://herbsutter.com/gotw/_101/ and my first impression is quite
>positive.

I like the idea, too.

>It's very lightweight and I find splitting one header in two (public
>and
>private) to be very sensible (ironically matching the handle/body
>concept).

:)

>I myself routinely do that to implement pimpl-based hierarchies. In
>comparison my-pimpl offering looks quite heavy and old (given no C++11
>facelift). More and more I feel my-pimpl is a few years late to the
>party,
>err... the review.

There are many that will not have variadic templates for years, so the older approach can still offer value. That said, your library would be more complete with something like Herb's approach.

___
Rob

(Sent from my portable computation engine)


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