Original Post
Heya, i'm a little confused right now. I'm using the boost::function templates quite a bit and today i came across a litle problem. What i'm trying to do is, compare two boost::function objects but this dosen't quite work. Even if both functors are of the same type, like: I guess i'm missing something ... any hints ? Thanks in advance. Impz0r
typedef boost::function<void (void * ptr)> myFunctor;
myFunctor mf1;
myFunctor mf2;
// does not work, the compiler error is:
// error C2666: 'operator ==' : 4 overloads have similar conversions
if (mf1 == mf2)
{
// do something awesome ...
}