1
0
mirror of https://github.com/microsoft/GSL.git synced 2025-03-22 13:34:18 -04:00

Update include/gsl/span

Co-Authored-By: Casey Carter <cartec69@gmail.com>
This commit is contained in:
Jordan Maples [MSFT] 2020-02-03 13:46:18 -08:00 committed by GitHub
parent 17e372c155
commit 9bb900e834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -475,7 +475,7 @@ public:
typename details::calculate_subspan_type<ElementType, Extent, Offset, Count>::type
{
Expects((size() >= Offset) &&
(Count == dynamic_extent || (Offset + Count <= size())));
(Count == dynamic_extent || (Count <= size() - Offset)));
return {data() + Offset, Count == dynamic_extent ? size() - Offset : Count};
}