$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-08-24 11:28:52
Jonathan Wakely wrote:
> 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*'
Fixed, thanks. :-)