forked from microsoft/GSL
Update include/gsl/span
Co-Authored-By: Casey Carter <cartec69@gmail.com>
This commit is contained in:
co-authored by
Casey Carter
parent
17e372c155
commit
9bb900e834
+1
-1
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user