|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-08-01 09:04:27
"Douglas Gregor" <gregod_at_[hidden]> writes:
> 3) There is an alternative solution: Boost.Threads presents a single,
> non-template interface to the user and hides all of the platform-specific
> details using the pImpl idiom. The same approach can be applied here, and I
> think we'll find that it has all of the same advantages.
Not quite. pImpl is really bad when you have multiple interacting
concrete types. I think you'll find yourself doing a lot of
polymorphic_downcast<>s.
-- 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