mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fixes for Clang 3.6 compilation.
This commit is contained in:
parent
c366f4415d
commit
4de3d4e3e3
@ -220,7 +220,7 @@ namespace details
|
|||||||
|
|
||||||
constexpr const_span_iterator operator+(difference_type n) const noexcept
|
constexpr const_span_iterator operator+(difference_type n) const noexcept
|
||||||
{
|
{
|
||||||
auto ret{*this};
|
auto ret = *this;
|
||||||
return ret += n;
|
return ret += n;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,7 +233,7 @@ namespace details
|
|||||||
|
|
||||||
constexpr const_span_iterator operator-(difference_type n) const noexcept
|
constexpr const_span_iterator operator-(difference_type n) const noexcept
|
||||||
{
|
{
|
||||||
auto ret{*this};
|
auto ret = *this;
|
||||||
return ret -= n;
|
return ret -= n;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -650,7 +650,7 @@ private:
|
|||||||
template <class OtherExtentType>
|
template <class OtherExtentType>
|
||||||
constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
|
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_; }
|
constexpr inline pointer data() const noexcept { return data_; }
|
||||||
|
Loading…
Reference in New Issue
Block a user