[clang-tidy] False positive cppcoreguidelines-rvalue-reference-param-not-moved
when constructor is deleted
#69412
Labels
cppcoreguidelines-rvalue-reference-param-not-moved
when constructor is deleted
#69412
https://godbolt.org/z/dnE37P4c4
SFML uses this pattern where
const&
overloads are kept while&&
overloads are deleted to prevent constructor from temporary values. The&&
overloads get flagged bycppcoreguidelines-rvalue-reference-param-not-moved
in spite of them being deleted and thus having no function body.The text was updated successfully, but these errors were encountered: