diff --git a/view.hpp b/view.hpp index e86801fc..0a0a21f9 100644 --- a/view.hpp +++ b/view.hpp @@ -300,7 +300,7 @@ namespace cruft { [[nodiscard]] constexpr auto split (IndexT idx) const { - CHECK_LE (idx, size ()); + CHECK_LE (cruft::cast::lossless (idx), size ()); auto last = m_begin; std::advance (last, idx);