How to compare function objects
How do I compare if two function objects hold the same function reference?
struct A {
void b(){}
}
int main() {
A a;
auto f1 = std::bind(&A::b, a);
auto f2 = std::bind(&A::b, a);
f1 == f2 // ???
}
No comments:
Post a Comment