
On Tue, Aug 24, 2004 at 06:35:07PM +0300, Peter Dimov wrote:
Your example works for me on MSVC 7.1. What kinds of errors do you get, and on what compilers?
$ g++34 -I$HOME/include shared_ptr_fun.cc -c /home/jw/include/boost/shared_ptr.hpp: In constructor `boost::shared_ptr<T>::shared_ptr(Y*, D) [with Y = void ()(), D = null_deleter, T = void ()()]': shared_ptr_fun.cc:20: instantiated from here /home/jw/include/boost/shared_ptr.hpp:138: error: invalid conversion from `void (*)()' to `const volatile void*' /home/jw/include/boost/shared_ptr.hpp:138: error: initializing argument 1 of `void boost::detail::sp_enable_shared_from_this(const volatile void*, const volatile void*, const boost::detail::shared_count&)' /home/jw/include/boost/shared_ptr.hpp:138: error: invalid conversion from `void (*)()' to `const volatile void*' /home/jw/include/boost/shared_ptr.hpp:138: error: initializing argument 2 of `void boost::detail::sp_enable_shared_from_this(const volatile void*, const volatile void*, const boost::detail::shared_count&)' jon -- "Immorality: the morality of those who are having a better time." - H.L. Mencken