Re: [PATCH v3 1/5] libstdc++: Check prerequisites of layout_*::operator().

2025-07-07 Thread Tomasz Kaminski
On Mon, Jul 7, 2025 at 3:29 PM Luc Grosheintz wrote: > > On 7/4/25 10:29, Luc Grosheintz wrote: > > Previously, the prerequisite that the arguments passed to operator() are > > a multi-dimensional index (of extents()) was not checked. > > > > Both mapping::operator() and mdspan::operator[] have t

Re: [PATCH v3 1/5] libstdc++: Check prerequisites of layout_*::operator().

2025-07-07 Thread Luc Grosheintz
On 7/4/25 10:29, Luc Grosheintz wrote: Previously, the prerequisite that the arguments passed to operator() are a multi-dimensional index (of extents()) was not checked. Both mapping::operator() and mdspan::operator[] have the same prerequisite. Since, mdspan must check the prerequisite for us

Re: [PATCH v3 1/5] libstdc++: Check prerequisites of layout_*::operator().

2025-07-07 Thread Jonathan Wakely
On Fri, 4 Jul 2025 at 09:32, Luc Grosheintz wrote: > > Previously, the prerequisite that the arguments passed to operator() are > a multi-dimensional index (of extents()) was not checked. > > Both mapping::operator() and mdspan::operator[] have the same > prerequisite. Since, mdspan must check the

Re: [PATCH v3 1/5] libstdc++: Check prerequisites of layout_*::operator().

2025-07-07 Thread Tomasz Kaminski
On Fri, Jul 4, 2025 at 10:32 AM Luc Grosheintz wrote: > Previously, the prerequisite that the arguments passed to operator() are > a multi-dimensional index (of extents()) was not checked. > > Both mapping::operator() and mdspan::operator[] have the same > prerequisite. Since, mdspan must check t