addressing most of Casey's comments

This commit is contained in:
Jordan Maples
2020-05-20 10:59:57 -07:00
parent 2085c7acde
commit 552cd20472
5 changed files with 23 additions and 24 deletions

View File

@ -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)};
}
//