
13 Jul
2007
13 Jul
'07
9:06 a.m.
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