Re: [PATCH v2 5/5] libstdc++: Make mdspan nothrow movable.

2025-07-01 Thread Tomasz Kaminski
Put them into main mdspan commit. No harm in having them. On Tue, Jul 1, 2025 at 3:21 PM Luc Grosheintz wrote: > You're right, I remember checking this; but it appears I conned > myself. I've reverted the change to , do you want to keep > the tests? > > On 7/1/25 12:35, Tomasz Kaminski wrote: >

Re: [PATCH v2 5/5] libstdc++: Make mdspan nothrow movable.

2025-07-01 Thread Luc Grosheintz
You're right, I remember checking this; but it appears I conned myself. I've reverted the change to , do you want to keep the tests? On 7/1/25 12:35, Tomasz Kaminski wrote: Hi, I do not think that the change is necessary, as for the functions default on the first declaration (as in the case for

Re: [PATCH v2 5/5] libstdc++: Make mdspan nothrow movable.

2025-07-01 Thread Tomasz Kaminski
Hi, I do not think that the change is necessary, as for the functions default on the first declaration (as in the case for the constructors/assigments for mdpsan) have noexcept specifier deduced from it body. In other words, I think the test should pass, without adding the complicated noexcept con

[PATCH v2 5/5] libstdc++: Make mdspan nothrow movable.

2025-06-27 Thread Luc Grosheintz
If all members of mdspan are nothrow movable, then mdspan can also be nothrow movable. The standard doesn't specify that mdspan must be nothrow movable (when possible). Nothrow movable enables containers to use move operations even if they have a strong exception guarantee. This commit strenghtens