id summary reporter owner description type status milestone component version severity resolution keywords cc 3453 Using bind with Boost.Function won't compile junfeng-guo@… Douglas Gregor "Below codes are copied from sample codes in Boost.Bind documentation at http://www.boost.org/doc/libs/1_40_0/libs/bind/bind.html#with_boost_function, with a little modification. It compiles in older version (1.30.0) but fails to compile in newer version (1.36.0 or newer) and report following error: \boost/function/function_base.hpp(316) : error C2059: syntax error : '(' \boost/function/function_base.hpp(312) : while compiling class template member function 'void boost::detail::function::functor_manager_common::manage_small(const boost::detail::function::function_buffer &,boost::detail::function::function_buffer &,boost::detail::function::functor_manager_operation_type)' I am using MSVC 9.0. Seems there is a bug in the Boost.Function codes. Here are the test codes: class button { public: boost::function onClick; }; class player { public: void play(){}; void stop(){}; }; button playButton, stopButton; player thePlayer; void connect() { playButton.onClick = boost::bind(&player::play, &thePlayer); stopButton.onClick = boost::bind(&player::stop, &thePlayer); } " Bugs closed Boost 1.41.0 function Boost 1.40.0 Showstopper invalid