The diagnostic is issued by clang-tidy 17.
This just suppressed the diagnostic. The move operations are non-standard extensions and the class itself is deprecated.
Differential D151223
[libc++] Fixes use-after move diagnostic. Mordante on May 23 2023, 8:15 AM. Authored by
Details
The diagnostic is issued by clang-tidy 17. This just suppressed the diagnostic. The move operations are non-standard extensions and the class itself is deprecated.
Diff Detail
Event Timeline
Comment Actions I still don't understand what extension is supposed to be used. Not a single compiler complains about casting an rvalue to a base: https://godbolt.org/z/bv4Moh5on
|
Here and below.