On Monday 12 August 2002 6:13 pm, Lars Gullik Bjønnes wrote: > The real problem comes when you allocate _two_ pointers.
And in this case I wrap by new inside a boost::scoped_ptr, so it's guaranteed to be safe. Just to check, here's the code snippet. Angus class Counters; class Buffer { private boost::scoped_ptr<Counters> const ctrs; }; #include "counters.h" Buffer::Buffer() : ctrs(new Counters) {}