Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-05-02 11:43:21


First let me state that function.hpp is, in my opinion, ready to be accepted
by boost.

Unfortunately it doesn't work on MSVC 7.0. :-(

C:\Projects\testbed\function_test.cpp(125) : error C2558: class
'boost::function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9>' : no copy constructor
available or copy constructor is declared 'explicit'

C:\Projects\testbed\function_test.cpp(216) : error C2558: class
'boost::function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9>' : no copy constructor
available or copy constructor is declared 'explicit'

C:\Projects\testbed\function_test.cpp(276) : error C2558: class
'boost::function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9>' : no copy constructor
available or copy constructor is declared 'explicit'

C:\Projects\testbed\function_test.cpp(528) : error C2679: binary '=' : no
operator found which takes a right-hand operand of type
'boost::function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9>' (or there is no acceptable
conversion)

It seems that the

function(BOOST_MSVC_INCLUDE(const) Functor f)

constructor shadows the copy constructor; I tried to spell it

function(Functor const & f)

but this broke too many other things.

--
Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk