Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-08-30 13:55:56


AMDG

Hajo Kirchhoff wrote:
> Hello,
> I would like to compare two boost::function<void()> objects, but get an
> "boost::operator ==' : 4 overloads have similar conversions" error.
>
> On Visual Studio 2008 SP1, both Win32 and x64 target platform, the
> following code does not compile:
>
> boost::function<void()> one, two;
> if (one==two)
> one.clear();
>
> I get the compile error messages below.
>
> Any ideas, any help?
>

Comparing two boost::functions is unsupported.

http://www.boost.org/doc/libs/1_36_0/doc/html/function/faq.html#id2914657

In Christ,
Steven Watanabe


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