How can I compare two C++11 std::functions with operator==, and return true if both of said functions refer to the same f
std::function
operator==
true
function
You could try comparing a and b first by comparing their .target_type() and if these target type ids are the same, then you can compare their .target() pointers. You can use a mismatching target type as an early out false.
a
b