diff --git a/include/mtx/identifiers.hpp b/include/mtx/identifiers.hpp index 7807fb38457f133d8357b0d6b4b09edfe3373085..dee64aa707645fe0133c187a7afcb915d8dd642e 100644 --- a/include/mtx/identifiers.hpp +++ b/include/mtx/identifiers.hpp @@ -72,7 +72,7 @@ class User : public ID public: template<typename Identifier> friend Identifier parse(const std::string &id); - auto operator<=>(User const &other) const noexcept { return id_ <=> other.id_; }; + auto operator<=>(User const &other) const noexcept { return id_.compare(other.id_) <=> 0; }; bool operator==(User const &other) const noexcept { return id_ == other.id_; }; private: