From 63702fcc6fadff27d0451313372bf6ca5effd2df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:31:44 +0200 Subject: [PATCH] Implement identifier comparison overloads --- src/openrct2/core/Identifier.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/openrct2/core/Identifier.hpp b/src/openrct2/core/Identifier.hpp index 22fe9b0981..a08156e498 100644 --- a/src/openrct2/core/Identifier.hpp +++ b/src/openrct2/core/Identifier.hpp @@ -63,4 +63,14 @@ public: { return _handle != other; } + + constexpr bool operator==(const TIdentifier& other) const noexcept + { + return _handle == other._handle; + } + + constexpr bool operator!=(const TIdentifier& other) const noexcept + { + return _handle != other._handle; + } };