From a08ef72265f270f7b0925a0ee9f5c6cee4187c6d Mon Sep 17 00:00:00 2001 From: trav90 Date: Sat, 6 Oct 2018 17:33:48 -0500 Subject: Fix Span.h constexprs for VS2017 --- mfbt/Span.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mfbt') diff --git a/mfbt/Span.h b/mfbt/Span.h index 5acaafcbd7..f031a928bb 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); } -- cgit v1.2.3