Boost logo

Boost Users :

Subject: [Boost-users] [bind+signals] binding overloaded function + gcc4.6.2 = call of overloaded is ambiguous
From: Bogdan Slusarczyk (bogdan.slusarczyk_at_[hidden])
Date: 2011-11-25 09:13:30


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?

Regards,
Bogdan

PS. I tried boost 1.38/1.48 and gcc 3.4.3/4.6.2


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