From 4de3d4e3e314016ee910a21d7c040e343c9871fb Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Tue, 26 Jul 2016 18:44:13 -0700 Subject: [PATCH] Fixes for Clang 3.6 compilation. --- include/span.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/span.h b/include/span.h index 27c479d..decc8e2 100644 --- a/include/span.h +++ b/include/span.h @@ -220,7 +220,7 @@ namespace details constexpr const_span_iterator operator+(difference_type n) const noexcept { - auto ret{*this}; + auto ret = *this; return ret += n; } @@ -233,7 +233,7 @@ namespace details constexpr const_span_iterator operator-(difference_type n) const noexcept { - auto ret{*this}; + auto ret = *this; return ret -= n; } @@ -650,7 +650,7 @@ private: template constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data) { - Expects((!data && size() == 0) || (data && size() >= 0)); + Expects((!data && ExtentType::size() == 0) || (data && ExtentType::size() >= 0)); } constexpr inline pointer data() const noexcept { return data_; }