diff --git a/mbed/FunctionPointerBase.h b/mbed/FunctionPointerBase.h index 02a6dbd3..70443bd7 100644 --- a/mbed/FunctionPointerBase.h +++ b/mbed/FunctionPointerBase.h @@ -29,6 +29,11 @@ class FunctionPointerBase { return (_membercaller != NULL) && (_object != NULL); } + bool operator==(const FunctionPointerBase& other) + { + return (_membercaller == other._membercaller) && (_object == other._object); + } + /** * Clears the current function pointer assignment * After clear(), this instance will point to nothing (NULL)