view: avoid unsigned comparison warnings in split's assert

This commit is contained in:
Danny Robson 2019-02-03 12:29:49 +11:00
parent ab6840c7fc
commit ddc24b076b

View File

@ -300,7 +300,7 @@ namespace cruft {
[[nodiscard]] constexpr auto
split (IndexT idx) const
{
CHECK_LE (idx, size ());
CHECK_LE (cruft::cast::lossless<std::size_t> (idx), size ());
auto last = m_begin;
std::advance (last, idx);