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*);
>
> private:
> struct state;
> scoped_ptr<state> m_state;
> };Missing ~foo, possible undefined behavior. :-) _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
