https://bugs.kde.org/show_bug.cgi?id=375537
Bug ID: 375537 Summary: clazy-rule-of-two-soft false positive if class has move assignment operator Product: clazy Version: unspecified Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: unassigned-b...@kde.org Reporter: dan...@pfeifer-mail.de CC: smart...@kde.org Target Milestone: --- std::thread t; t = std::thread(...); Clazy reports: Using assign operator but class std::thread has copy-ctor but no assign operator. This is not accurate. Class std::thread does have an assignment operator! It has a move assignment operator but no copy assignment operator. In the above code, the assignment operator is passed a prvalue. This executes the move assignment operator, not a copy-ctor. -- You are receiving this mail because: You are watching all bug changes.