[simd.permute.*] Fix wording that referred to V after renaming V to M for some overloads#8132
Conversation
|
@Dani-Hub Could you take a look please? |
|
I'm not sure whether I get the full idea. Could you please write it down for one example, @mattkretz ? |
|
The alternative wording idea is only for [simd.permute.static]. I'm currently compiling a new std.pdf and will attach a screenshot ASAP. The renaming from |
|
Yeah the
|
|
The return type is
Note that I changed the other [simd.permute.*] subclauses to use |
|
What I'm trying to say is that it could be a non-static access depending on the actual template argument. Personally I feel that this goes beyond an editorial change, but maybe @jwakely has a different opinion. |
|
The template argument is constrained to enabled specializations of |
|
I don't want to speculate on that. This is a subtlety to me and I really don't see the editorial advantage. |
|
Just as an example: Unless I'm mistaken, user code could potentially specialize |
|
Technically, a user can specialize But more important to me here is the design intent behind (edit: clarify |
|
Oh, the editorial advantage is that we don't need an "Let To me, if I have to choose between "Let (edit: remove useless speculation) |
ddd89a7 to
586f74c
Compare
|
As discussed in LWG on https://github.com/cplusplus/nbballot/issues/870, the PR now simply reverts the renaming of |
|
Thanks, everyone! @mattkretz, could you maybe add a subsequent paragraph to the commit message pointing to the previous commit and/or pull request that changed this, so that we have a bit of rationale why this is "changing back" and why the original change didn't work out? |
|
Does this PR fully address https://github.com/cplusplus/nbballot/issues/870? If so, could you please add a corresponding "Fixes:" line to the first comment? |
|
Will do. b6e5010 is the commit I'm going to reference |
|
@mattkretz friendly ping |
This was changed editorially by b6e5010 as part of "2025-06 LWG Motion 13: P3691R1 Reconsider naming of the namespace for std::simd", but turned out not to be a helpful change, because it makes other wording more complex. Fixes NB US 180-295 (C++26 CD).
586f74c to
9a42b30
Compare
|
I've made the changes. |

[simd.permute.static] Now says 'Let
VbeM…' which is the shortest solution here. Alternatively, we could introduceTto beV::value_type/boolfor the two overloads and instead ofV::size()writev.size().Also, maybe we want to rename the function parameter from
vtoxfor the [simd.permute.*] functions?Fixes https://github.com/cplusplus/nbballot/issues/870.