Re: [boost] Fun PP lib example

2003-08-14 Thread Peter Dimov
Aleksey Gurtovoy wrote: > > There is another variation of the idiom, sometimes called "hidden > state", which doesn't have the shortcoming in the first place: > > class foo > { > public: > foo(); > foo(int); > > int f() const; > void g(double*); > >

Re: [boost] Fun PP lib example

2003-08-14 Thread Aleksey Gurtovoy
Peter Dimov wrote: > Aleksey Gurtovoy wrote: > > > > There is another variation of the idiom, sometimes called "hidden > > state", which doesn't have the shortcoming in the first place: > > > > class foo > > { > > public: > > foo(); > > foo(int); > > > > int f()

Re: [boost] Fun PP lib example

2003-08-04 Thread John Torjo
> > 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. Paul, if you want to put it (or something like it) in > the PP lib docs, you're welcome to. > Hi Dave, Pretty cool! Small note: instead of 'in

RE: [boost] Fun PP lib example

2003-08-01 Thread Paul Mensonides
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 d

Re: [boost] Fun PP lib example

2003-08-01 Thread Aleksey Gurtovoy
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 p

[boost] Fun PP lib example

2003-08-01 Thread David Abrahams
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. Paul, if you want to put it (or something like it) in the PP lib docs, you're welcome to. // Copyright David Abrahams 2003. Permission to copy, use,