25 Nov
2011
25 Nov
'11
3:38 p.m.
On 11/25/2011 3:13 PM, Bogdan Slusarczyk wrote:
Hi all, Such code can be built without problem using gcc3.4.3:
typedef boost::signal< void () > Signal; Signal s; boost::bind( &Signal::operator(), &s );
but gcc4.6.2 returns:
error: call of overloaded 'bind(<unresolved overloaded function type>, Signal*)' is ambiguous
Is it expected behaviour? or problem in gcc4.6.2? Is there any solution except casting function pointer to particular type?
You could use boost::bind(boost::apply<void>(), boost::ref(s));