This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of New status.
simd::unchecked_load misses difference type castingSection: 29.10.8.7 [simd.loadstore] Status: New Submitter: Hewill Kang Opened: 2025-09-29 Last modified: 2025-10-22
Priority: 3
View other active issues in [simd.loadstore].
View all other issues in [simd.loadstore].
View all issues with New status.
Discussion:
Currently, simd::unchecked_load/partial_load/unchecked_store/partial_store construct a
span via span(first, n) when taking an iterator first and its difference type n.
[2025-10-22; Reflector poll.]
Set priority to 3 after reflector poll.
Question was raised if we should use size_t instead of
iter_difference_t for consistency with span.
Proposed resolution:
This wording is relative to N5014.
In subclause 29.10.8.7 [simd.loadstore] replace all occurrences of
R(first, n)
by
R(first, static_cast<size_t>(n))