summaryrefslogtreecommitdiffstats
path: root/mfbt/Span.h
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
commita08ef72265f270f7b0925a0ee9f5c6cee4187c6d (patch)
tree90f0ea64d975a6d0e0622c09aa9024e7dce11fe3 /mfbt/Span.h
parentc2fa384d666aea1b119736f33116ac09e870fda0 (diff)
downloadUXP-a08ef72265f270f7b0925a0ee9f5c6cee4187c6d.tar
UXP-a08ef72265f270f7b0925a0ee9f5c6cee4187c6d.tar.gz
UXP-a08ef72265f270f7b0925a0ee9f5c6cee4187c6d.tar.lz
UXP-a08ef72265f270f7b0925a0ee9f5c6cee4187c6d.tar.xz
UXP-a08ef72265f270f7b0925a0ee9f5c6cee4187c6d.zip
Fix Span.h constexprs for VS2017
Diffstat (limited to 'mfbt/Span.h')
-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);
}