
27 Jun
2012
27 Jun
'12
7:37 a.m.
Igor R wrote: [snip] Thank you for your reply.
I haven't managed to realise why you get this specific error (maybe it's some weird MSVC bug), but Boost.Function expects a callable with I am using gcc 4.4.1 (OpenSuSE 11.2).
the exact signature. Try the following: boost::function
f1(xxx); boost::function f2(xxx); and you'll see that the 2nd line does not compile. Indeed, the second line does not compile. Makes me wonder the more why the template is ambiguous: when I comment the "good" constructor out, the code is no longer ambiguous, but does not compile as well.