From e987b73a326fa6d4f374c20432a298e005f99168 Mon Sep 17 00:00:00 2001 From: Johannes Josef Junggeburth <johannes.josef.junggeburth@cern.ch> Date: Fri, 26 Jan 2024 09:05:43 +0100 Subject: [PATCH] Add template specification of the comparison operator --- .../GeoModelKernel/GeoModelKernel/GeoIntrusivePtr.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoIntrusivePtr.h b/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoIntrusivePtr.h index 728767d35..f4643f891 100644 --- a/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoIntrusivePtr.h +++ b/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoIntrusivePtr.h @@ -108,10 +108,10 @@ class GeoIntrusivePtr{ /// Invalidity operator bool operator!() const { return !m_ptr; } /// Comparison operator - // template <class GeoTypeGrp> - // bool operator==(const GeoIntrusivePtr<GeoTypeGrp>& other) const { - // return m_ptr == other.m_ptr; - // } + template <class GeoTypeGrp> + bool operator==(const GeoIntrusivePtr<GeoTypeGrp>& other) const { + return m_ptr == other.m_ptr; + } bool operator==(GeoType* other) const { return m_ptr == other; } -- GitLab