Skip to content
Snippets Groups Projects
Commit f7c4b1c1 authored by AlQuemist's avatar AlQuemist
Browse files

Base/Axis/Coordinate: add explicit implementation of operator ==

parent b682ef56
No related branches found
No related tags found
1 merge request!2727Avoid using C++20 features to keep the libraries maintainable on older systems
...@@ -28,7 +28,10 @@ public: ...@@ -28,7 +28,10 @@ public:
Coordinate(const std::string& label); Coordinate(const std::string& label);
Coordinate(const std::string& name, const std::string& unit); 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& name() const { return m_name; }
const std::string& unit() const { return m_unit; } const std::string& unit() const { return m_unit; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment