[PATCH] D98971: [C++20] [P1825] Fix bugs with implicit-move from variables of reference type
Matheus Izvekov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 23 08:01:18 PDT 2021
mizvekov added a comment.
In D98971#2644747 <https://reviews.llvm.org/D98971#2644747>, @Quuxplusone wrote:
> Shrink the code by one line, by introducing another local named variable.
> Still hoping for an "accept" here.
My two cents:
Functionality-wise I think it is OK, but like I said before, I think the extra repetition / verbosity hurts more than helps.
I think the suggested shortening captures the intention of the standard better: The object itself should be non-volatile, no matter if we have it by value or rvalue reference.
It does not look like to me that the clang code is in general styled to spell the wording that precisely, or else those comments quoting the standard wording would not be of much use.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98971/new/
https://reviews.llvm.org/D98971
More information about the cfe-commits
mailing list