Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-08-02 18:38:10


Aleksey Gurtovoy <agurtovoy_at_[hidden]> writes:

> I was talking about pimpl as described here -
> http://www.gotw.ca/gotw/024.htm.
>
>> I need to be able to plug in different
>> runtime-polymorphic implementations behind the handle classes I'm
>> defining.
>
> Sounds like a job for an interface class + a factory function, unless your
> objects need to be passed by value.

Yes, that's what I wanted.

> In any case, IMO the latter one is more
> correctly described as "handle/body".

I can never keep all these design patterns straight in my mind; many
are so similar.

-- 
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