mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Fix Span.h constexprs for VS2017
This commit is contained in:
parent
037afae5e6
commit
48b18a815d
1 changed files with 6 additions and 6 deletions
12
mfbt/Span.h
12
mfbt/Span.h
|
|
@ -276,20 +276,20 @@ public:
|
|||
return lhs.index_ < rhs.index_;
|
||||
}
|
||||
|
||||
constexpr friend bool operator<=(const span_iterator& lhs,
|
||||
const span_iterator& rhs)
|
||||
MOZ_SPAN_GCC_CONSTEXPR friend bool operator<=(const span_iterator& lhs,
|
||||
const span_iterator& rhs)
|
||||
{
|
||||
return !(rhs < lhs);
|
||||
}
|
||||
|
||||
constexpr friend bool operator>(const span_iterator& lhs,
|
||||
const span_iterator& rhs)
|
||||
MOZ_SPAN_GCC_CONSTEXPR friend bool operator>(const span_iterator& lhs,
|
||||
const span_iterator& rhs)
|
||||
{
|
||||
return rhs < lhs;
|
||||
}
|
||||
|
||||
constexpr friend bool operator>=(const span_iterator& lhs,
|
||||
const span_iterator& rhs)
|
||||
MOZ_SPAN_GCC_CONSTEXPR friend bool operator>=(const span_iterator& lhs,
|
||||
const span_iterator& rhs)
|
||||
{
|
||||
return !(rhs > lhs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue