diff --git a/common/cpp/include/asapo/common/error.h b/common/cpp/include/asapo/common/error.h index 4363fb05bce42feaa3b827609ecf0afbfaf20116..fe6b93bf7efbe16a61dd23e2a539135f7d186653 100644 --- a/common/cpp/include/asapo/common/error.h +++ b/common/cpp/include/asapo/common/error.h @@ -75,11 +75,11 @@ class ErrorTemplateInterface { }; static inline bool operator==(const Error& lhs, const ErrorTemplateInterface& rhs) { - return rhs.operator == (lhs); + return rhs == lhs; } static inline bool operator!=(const Error& lhs, const ErrorTemplateInterface& rhs) { - return rhs.operator != (lhs); + return rhs != lhs; } template<typename ServiceErrorType> @@ -119,12 +119,12 @@ class ServiceErrorTemplate : public ErrorTemplateInterface { template<typename ServiceErrorType> static inline bool operator==(const Error& lhs, const ServiceErrorTemplate<ServiceErrorType>& rhs) { - return rhs.operator == (lhs); + return rhs == lhs; } template<typename ServiceErrorType> static inline bool operator!=(const Error& lhs, const ServiceErrorTemplate<ServiceErrorType>& rhs) { - return rhs.operator != (lhs); + return rhs != lhs; } namespace GeneralErrorTemplates {