-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
LWGLibrary Working Group issueLibrary Working Group issuefixedSomething works now, yay!Something works now, yay!mdspanC++23 mdspanC++23 mdspan
Description
LWG-3974 mdspan::operator[] should not copy OtherIndexTypes
The accepted resolution says extents_type::index-cast while we use static_cast<index_type>:
Lines 1286 to 1291 in 46843b3
| template <class _OtherIndexType, size_t... _Seq> | |
| _NODISCARD constexpr reference _Multidimensional_subscript( | |
| span<_OtherIndexType, rank()> _Indices, index_sequence<_Seq...>) const | |
| noexcept(noexcept(_Access_impl(static_cast<index_type>(_STD as_const(_Indices[_Seq]))...))) { | |
| return _Access_impl(static_cast<index_type>(_STD as_const(_Indices[_Seq]))...); | |
| } |
I'm 80% sure this is unobservable, but I'm filing this issue to double-check.
Metadata
Metadata
Assignees
Labels
LWGLibrary Working Group issueLibrary Working Group issuefixedSomething works now, yay!Something works now, yay!mdspanC++23 mdspanC++23 mdspan
Type
Projects
Status
Done