Update include/gsl/span

Co-authored-by: Jordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>
This commit is contained in:
beinhaerter 2020-10-20 00:44:11 +02:00 committed by GitHub
parent dc6fdff4c0
commit 2af9b11fe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -441,7 +441,7 @@ public:
template <std::size_t MyExtent = Extent, std::enable_if_t<MyExtent == dynamic_extent, int> = 0>
constexpr span(pointer firstElem, pointer lastElem) noexcept
: storage_(firstElem, gsl::narrow_cast<std::size_t>(lastElem - firstElem))
: storage_(firstElem, narrow_cast<std::size_t>(lastElem - firstElem))
{}
template <std::size_t N,