Boost signals2 automatic connection management and changing the mutex type of a signal
问题 I am trying to use automatic connection management and changing the mutex type of a signal for a template function. The following code compiles and executes fine using gcc-4.3.4. (http://ideone.com/LLN6d) #include <boost/signals2.hpp> #include <boost/enable_shared_from_this.hpp> #include <stdio.h> class Simple : public boost::enable_shared_from_this< Simple > { private: typedef boost::signals2::signal_type<void( int ), boost::signals2::keywords::mutex_type< boost::signals2::dummy_mutex > >: