Boost logo

Boost Users :

From: gruenedd_at_[hidden]
Date: 2005-05-18 14:59:24


> private:
> struct Private;
> boost::scoped_ptr<Private> d;
> };

When working with Qt, i suggest to write the Pimpl idiom like this,
since the generated code from moc needs access to your FooPrivate,
in cases.

struct FooPrivate;
class Foo
{
private:
  FooPrivate* pimpl_;
};

--David


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net