8 Oct
2002
8 Oct
'02
1:57 p.m.
From: "Stephan Born"
Declaring the destructor as private is only possible when defining boost::checked_delete as friend of the singleton-class. ( there is a thread on comp.lang.c++.moderated with the topic 'specialization of function template as friend with MSVC6SP5 not possible' which deals with this problem of friendship... )
I missed that thread... no 'boost', 'shared_ptr' or 'checked_delete' in the subject. :-) Anyway, making boost::checked_delete a friend - even if you could do it ;-) - is not guaranteed to work. boost::shared_ptr isn't required to use boost::checked_delete.