From f7c4b1c15b6218c92060cc737fdf0503eebc93cd Mon Sep 17 00:00:00 2001 From: AlQuemist <alquemist@Lyriks> Date: Fri, 20 Sep 2024 13:00:41 +0200 Subject: [PATCH] Base/Axis/Coordinate: add explicit implementation of operator == --- Base/Axis/Coordinate.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Base/Axis/Coordinate.h b/Base/Axis/Coordinate.h index 3bd802836de..b478dad47b7 100644 --- a/Base/Axis/Coordinate.h +++ b/Base/Axis/Coordinate.h @@ -28,7 +28,10 @@ public: Coordinate(const std::string& label); Coordinate(const std::string& name, const std::string& unit); - bool operator==(const Coordinate& other) const = default; + bool operator==(const Coordinate& other) const + { + return (m_name == other.m_name && m_unit == other.m_unit); + } const std::string& name() const { return m_name; } const std::string& unit() const { return m_unit; } -- GitLab