1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 07:11:47 +02:00

Work around clang/libc++ issue

This commit is contained in:
Eelco Dolstra 2024-12-11 20:59:59 +01:00
parent d2e1d4916a
commit b167e2c415
3 changed files with 10 additions and 4 deletions

View file

@ -104,9 +104,9 @@ public:
bool operator ==(const Input & other) const noexcept;
auto operator <=>(const Input & other) const
bool operator <(const Input & other) const
{
return attrs <=> other.attrs;
return attrs < other.attrs;
}
bool contains(const Input & other) const;

View file

@ -49,7 +49,10 @@ struct FlakeRef
bool operator ==(const FlakeRef & other) const = default;
auto operator <=>(const FlakeRef &) const = default;
bool operator <(const FlakeRef & other) const
{
return std::tie(input, subdir) < std::tie(other.input, other.subdir);
}
FlakeRef(fetchers::Input && input, const Path & subdir)
: input(std::move(input)), subdir(subdir)

View file

@ -45,7 +45,10 @@ struct Explicit {
bool operator ==(const Explicit<T> & other) const = default;
auto operator <=>(const Explicit<T> & other) const = default;
bool operator <(const Explicit<T> & other) const
{
return t < other.t;
}
};