Re:New C++ features in GCC 12
by lenkite on Sunday May 01, 2022 @02:22PM
(#31227378)
This issue is caught and flagged by clang-tidy. Though technically the standard says it is in valid but un-specified state. Because of short string optimisation, the move might be possibly a copy, so one should not rely on the contents being empty.
[ Parent
| on HN ]