From b560769f6581e0661eaaf7e11b9e85c167c89135 Mon Sep 17 00:00:00 2001 From: Sergey Yakubov <sergey.yakubov@desy.de> Date: Sat, 30 Oct 2021 02:21:56 +0200 Subject: [PATCH] update error classes --- common/cpp/include/asapo/common/error.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/cpp/include/asapo/common/error.h b/common/cpp/include/asapo/common/error.h index 4363fb05b..fe6b93bf7 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 { -- GitLab