Boost logo

Boost Users :

From: Lars Monecke (lars_at_[hidden])
Date: 2006-06-26 09:37:07


Jiri Palecek wrote:
> Doesn't something like
> for_each(...,...,bind(stSignal,_1));
>
> work?

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> >
>::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
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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net