use (hopefully correctly) constexpr code on Range<> type