Closed braxtons12 closed 6 months ago
I think the correct thing to do here would be to just not std::move
loc
in either of those asserts. It's not specified by the standard, but source_location
is trivially copyable on all three of the major implementations, and should be on any reasonable implementation as well, in which case moving doesn't actually do anything anyway.
Hi @braxtons12, thanks for the bug report.
The double move is actually pretty obvious in the source code, I'm not sure how I missed it!
(As you point out, since source_location
is trivially copyable this isn't actually a problem in practice.)
This should be an easy fix :)
Title says it all, exact output is as below:
This is with clang-tidy 16 and 17