Suppress warning C26481 (#1099)

Suppress "warning C26481: Don't use pointer arithmetic. Use span instead (bounds.1)." in the code that impements `span`.
This commit is contained in:
Werner Henze 2023-03-15 00:57:46 +01:00 committed by GitHub
parent 50d6eef541
commit 43d60c5e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,6 +215,7 @@ namespace details
if (n != 0) Expects(begin_ && current_ && end_); if (n != 0) Expects(begin_ && current_ && end_);
if (n > 0) Expects(current_ - begin_ >= n); if (n > 0) Expects(current_ - begin_ >= n);
if (n < 0) Expects(end_ - current_ >= -n); if (n < 0) Expects(end_ - current_ >= -n);
GSL_SUPPRESS(bounds .1)
current_ -= n; current_ -= n;
return *this; return *this;
} }