23 Nov
2005
23 Nov
'05
10:34 a.m.
Bruno MartÃnez wrote:
Hi.
I had the same question that is answered there, but the answer didn't fit my problem. I'm using scoped_ptr<node> inside node itself, so node is incomplete at the point of use. That forbids using auto_ptr, IIUC.
You can use a scoped_ptr member with an incomplete type, as long as you include out of line default constructor (if you need one) and destructor.