From: Bohdan (gejrlaug_at_[hidden])
Date: 2003-08-02 05:43:06
"E. Gladyshev" <egladysh_at_[hidden]> wrote in message
> --- Edward Diener <eddielee_at_[hidden]> wrote:
> > E. Gladyshev wrote:
> > The pImpl technique is an idiom for hiding the
> > private methods and data
> > members of a class from the view of the user of that
> > class.
> By using a predefined ImplTraits you are actually
> achiving the same pImpl hiding effect. The user can
> just use a predefined ImplTraits class w/o any idea
> about its methods.
He didn't mean just user interest , but completely hiding platform
dependent implementation and even interface from compiler.
Less dependencies and yes ... again less compile time.
With your approach you can hide only implementation of traits
in cpp file.
PImpl and ImplTraits approaches both have
pros and cons. Question is not "what is good for modern c++"
but which approach is better for GUI lib.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk