Skip to content
Snippets Groups Projects
Verified Commit 7cf85aab authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Work around Apple clang not have <=> in the stdlib

parent 84b227fa
No related branches found
No related tags found
No related merge requests found
Pipeline #3657 failed
......@@ -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:
......
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