mirror of
https://github.com/microsoft/GSL.git
synced 2025-05-12 17:05:20 -04:00
addressing most of Casey's comments
This commit is contained in:
@ -121,7 +121,7 @@ span<T, dynamic_extent> ensure_sentinel(T* seq,
|
||||
GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute // TODO: suppress does not work
|
||||
while (static_cast<std::size_t>(cur - seq) < max && *cur != Sentinel) ++cur;
|
||||
Ensures(*cur == Sentinel);
|
||||
return span<T>(seq, static_cast<std::size_t>(cur - seq));
|
||||
return {seq, static_cast<std::size_t>(cur - seq)};
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user