mirror of
https://github.com/NixOS/nix
synced 2025-07-04 11:21:47 +02:00
Work around clang/libc++ issue
This commit is contained in:
parent
d2e1d4916a
commit
b167e2c415
3 changed files with 10 additions and 4 deletions
|
@ -104,9 +104,9 @@ public:
|
||||||
|
|
||||||
bool operator ==(const Input & other) const noexcept;
|
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;
|
bool contains(const Input & other) const;
|
||||||
|
|
|
@ -49,7 +49,10 @@ struct FlakeRef
|
||||||
|
|
||||||
bool operator ==(const FlakeRef & other) const = default;
|
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)
|
FlakeRef(fetchers::Input && input, const Path & subdir)
|
||||||
: input(std::move(input)), subdir(subdir)
|
: input(std::move(input)), subdir(subdir)
|
||||||
|
|
|
@ -45,7 +45,10 @@ struct Explicit {
|
||||||
|
|
||||||
bool operator ==(const Explicit<T> & other) const = default;
|
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;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue