
8 Jun
2006
8 Jun
'06
3:15 a.m.
On 6/7/06, Gottlob Frege
IIRC, one of boost's smart ptrs can be used with an incomplete type. How is the compile of the destructor delayed?
As I understand it, it's a consequence of allowing custom deleters. The destructor knows that it will call a boost::function-type thing on the pointer, but only needs the signature of that. The actual deleter is set on construction of the shared_ptr, at which point the type is complete. ~ Scott McMurray