Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Function] detecting ignored arguments?
From: Christoph Duelli (duelli_at_[hidden])
Date: 2012-06-27 03:37:20


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<void(int)> f1(xxx);
> boost::function<void(int, const ServerError&)> 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.


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