diff options
author | trav90 <travawine@palemoon.org> | 2018-10-06 17:33:48 -0500 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-10-06 17:33:48 -0500 |
commit | a08ef72265f270f7b0925a0ee9f5c6cee4187c6d (patch) | |
tree | 90f0ea64d975a6d0e0622c09aa9024e7dce11fe3 /mfbt | |
parent | c2fa384d666aea1b119736f33116ac09e870fda0 (diff) | |
download | UXP-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')
-rw-r--r-- | mfbt/Span.h | 12 |
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); } |