diff --git a/lix/libexpr/symbol-table.hh b/lix/libexpr/symbol-table.hh index b36002732..b24576047 100644 --- a/lix/libexpr/symbol-table.hh +++ b/lix/libexpr/symbol-table.hh @@ -106,9 +106,7 @@ public: explicit operator bool() const { return id > 0; } - bool operator<(const Symbol other) const { return id < other.id; } - bool operator==(const Symbol other) const { return id == other.id; } - bool operator!=(const Symbol other) const { return id != other.id; } + constexpr auto operator<=>(const Symbol & other) const noexcept = default; }; /**