From fb7fd9ab8e7d3a96771930c388bf5b4701b257df Mon Sep 17 00:00:00 2001 From: Johannes Junggeburth <johannes.josef.junggeburth@cern.ch> Date: Sat, 27 Jan 2024 16:06:06 +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