Merge pull request #870 from beinhaerter/suppress_span_warning

suppress code analysis warning
This commit is contained in:
Jordan Maples [MSFT] 2020-04-23 10:13:33 -07:00 committed by GitHub
commit 1999b48a51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,12 +581,18 @@ public:
constexpr iterator begin() const noexcept
{
const auto data = storage_.data();
// clang-format off
GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute
// clang-format on
return {data, data + size(), data};
}
constexpr iterator end() const noexcept
{
const auto data = storage_.data();
// clang-format off
GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute
// clang-format on
const auto endData = data + storage_.size();
return {data, endData, endData};
}