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:02 +02:00 committed by GitHub
parent 2ccf36b4b9
commit dc6fdff4c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -434,7 +434,7 @@ public:
template <std::size_t MyExtent = Extent, std::enable_if_t<MyExtent != dynamic_extent, int> = 0>
constexpr explicit 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))
{
Expects(lastElem - firstElem == static_cast<difference_type>(Extent));
}