summaryrefslogtreecommitdiff
path: root/mfbt
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2018-10-06 17:33:48 -0500
committertrav90 <travawine@palemoon.org>2018-10-06 17:33:48 -0500
commitf8a221cde84fe1d802d55525cfd6301136276cab (patch)
tree90f0ea64d975a6d0e0622c09aa9024e7dce11fe3 /mfbt
parentabe9b06bb7063da281112c0e42f55181c33300cc (diff)
downloadaura-central-f8a221cde84fe1d802d55525cfd6301136276cab.tar.gz
Fix Span.h constexprs for VS2017
Diffstat (limited to 'mfbt')
-rw-r--r--mfbt/Span.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/mfbt/Span.h b/mfbt/Span.h
index 5acaafcbd..f031a928b 100644
--- a/mfbt/Span.h
+++ b/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);
}