From: Bill Klein (bill_at_[hidden])
Date: 2000-12-26 16:23:32
>Can you declare a scoped_ptr without the parameter class definition
>being visible? I have tried this before with std::auto_ptr and gotten
>compiler errors because "delete SocketImpl" couldn't be defined at
>compile time. I end up using a plain pointer and handling new and
>delete by hand.
In order to get around this, I define a non-inline destructor
(even if it just has an empty body). This way the class is
defined where the destructor is and the compiler can do the
proper deletion etc...
-Bill Klein <bill_at_[hidden]>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk