Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-08-01 21:55:41


"Paul Mensonides" <pmenso57_at_[hidden]> writes:

> Aleksey Gurtovoy wrote:
>> David Abrahams wrote:
>> > Here's an example I just cooked up of using the PP lib to solve a
>> > classic C++ OO problem: repeated boilerplate in the definition of
>> > Pimpl classes.
>>
>> There is another variation of the idiom, sometimes called
>> "hidden state", which doesn't have the shortcoming in the first place:
>
> Dave, do you still think this would be a good example to add to the
> docs?

Well, yeah. I don't understand how Aleksey's idiom accomplishes the
same things as pimpl (yet). I need to be able to plug in different
runtime-polymorphic implementations behind the handle classes I'm
defining.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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