[clazy] [Bug 375537] New: clazy-rule-of-two-soft false positive if class has move assignment operator
Daniel Pfeifer
bugzilla_noreply at kde.org
Wed Jan 25 11:03:18 GMT 2017
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-bugs at kde.org
Reporter: daniel at pfeifer-mail.de
CC: smartins at 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 the assignee for the bug.
More information about the Unassigned-bugs
mailing list