Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-10-08 08:57:31


From: "Stephan Born" <yg-boost-users_at_[hidden]>
[...]
> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net