From c76bfceb3ea53ffe3bc316ce02886c0da1b00843 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 23 Dec 2021 16:09:29 +0100 Subject: [PATCH] fix: Compile issue on MacOS because Apple's just using fucking outdated stuff --- plugins/libimhex/include/hex/api/keybinding.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/libimhex/include/hex/api/keybinding.hpp b/plugins/libimhex/include/hex/api/keybinding.hpp index de667f46f..4501464d0 100644 --- a/plugins/libimhex/include/hex/api/keybinding.hpp +++ b/plugins/libimhex/include/hex/api/keybinding.hpp @@ -155,7 +155,13 @@ namespace hex { return *this; } - auto operator<=>(const Shortcut&) const = default; + bool operator<(const Shortcut &other) const { + return this->m_keys < other.m_keys; + } + + bool operator==(const Shortcut &other) const { + return this->m_keys == other.m_keys; + } private: friend Shortcut operator+(const Key &lhs, const Key &rhs);