News for hackers. Stuff that matters.
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.
Re:New C++ features in GCC 12 by deschutes on Sunday May 01, 2022 @03:47PM (#31228044)
Clang tidy covers only the most trivial use after move scenarios. It's useful coverage but isn't and never will be complete like the rust borrow checker.