Jiri Palecek wrote:
Doesn't something like for_each(...,...,bind(stSignal,_1));
work?
::signal1(const boost::signal1<void, int, boost::last_value<void>, int, std::less<int>, boost::function<void ()(int), std::allocator<void> > >&)': /usr/local/gcc-4.1.1/boost-1.33.1/boost/signals/signal_template.hpp:142: note: synthesized method 'boost::boost_signals::detail::signal_base::signal_base(const boost::boost_signals::detail::signal_base&)' first required here /usr/local/gcc-4.1.1/boost-1.33.1/boost/signal.hpp: In copy constructor 'boost::signal<void ()(int), boost::last_value<void>, int, std::less<int>, boost::function<void ()(int), std::allocator<void> > >::signal(const boost::signal<void ()(int), boost::last_value<void>, int, std::less<int>, boost::function<void ()(int), std::allocator<void> > >&)': /usr/local/gcc-4.1.1/boost-1.33.1/boost/signal.hpp:333: note: synthesized method 'boost::signal1<void, int, boost::last_value<void>, int, std::less<int>, boost::function<void ()(int), std::allocator<void> > ::signal1(const boost::signal1<void, int, boost::last_value<void>, int, std::less<int>, boost::function<void ()(int), std::allocator<void> > >&)' first required here
Sorry, no: /usr/local/gcc-4.1.1/boost-1.33.1/boost/noncopyable.hpp: In copy constructor 'boost::boost_signals::detail::signal_base::signal_base(const boost::boost_signals::detail::signal_base&)': /usr/local/gcc-4.1.1/boost-1.33.1/boost/noncopyable.hpp:27: error: 'boost::noncopyable_::noncopyable::noncopyable(const boost::noncopyable_::noncopyable&)' is private /usr/local/gcc-4.1.1/boost-1.33.1/boost/signals/detail/signal_base.hpp:119: error: within this context /usr/local/gcc-4.1.1/boost-1.33.1/boost/signals/signal_template.hpp: In copy constructor 'boost::signal1<void, int, boost::last_value<void>, int, std::less<int>, boost::function<void ()(int), std::allocator<void> > main.cpp: In function 'int main(int, char*)': main.cpp:41: note: synthesized method 'boost::signal<void ()(int), boost::last_value<void>, int, std::less<int>, boost::function<void ()(int), std::allocator<void> > >::signal(const boost::signal<void ()(int), boost::last_value<void>, int, std::less<int>, boost::function<void ()(int), std::allocator<void> > >&)' first required here main.cpp:41: error: initializing argument 1 of 'boost::_bi::bind_t<boost::_bi::unspecified, F, typename boost::_bi::list_av_1<A1>::type> boost::bind(F, A1) [with F = boost::signal<void ()(int), boost::last_value<void>, int, std::less<int>, boost::function<void ()(int), std::allocator<void> > >, A1 = boost::arg<1>]' More hints? Thanks, Lars -- Lars Monecke http://www.monecke.de PGP-Key unter https://www.monecke.de/infos/monecke.asc