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 | f8a221cde84fe1d802d55525cfd6301136276cab (patch) | |
tree | 90f0ea64d975a6d0e0622c09aa9024e7dce11fe3 /mfbt | |
parent | abe9b06bb7063da281112c0e42f55181c33300cc (diff) | |
download | aura-central-f8a221cde84fe1d802d55525cfd6301136276cab.tar.gz |
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); } |