
26 Jun
2006
26 Jun
'06
1:40 p.m.
Jiri Palecek wrote:
On Mon, 26 Jun 2006 13:52:24 +0200, Lars Monecke
wrote:
[...]
for_each(cInts.begin(), cInts.end(), boost::bind(&tSignal::operator(), boost::ref(stSignal), _1));
return 0; } ---code ends here
Any hints? Doesn't something like for_each(...,...,bind(stSignal,_1));
work?
Signals are noncopyable, but for_each( cInts.begin(), cInts.end(), boost::bind( boost::ref( stSignal ), _1 ) ); should work.