Boost logo

Boost Users :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2007-07-13 05:06:41


Zara wrote:

> The scoped_ptr is defined to be simple and to load as little as
> possible the code using it. To uses all potimizations possible, it's
> been designed in such a way that the struct pointed byt it must be
> completely defined when the pointer is declared, so you should replace

No, the type needs to be complete at destruction time, not at
declaration time of the pointer.

> the forward declaration "class C>Peer;" with the full declaration
> (typically, ibcluding its corresponding header

Markus


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