Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
Maintained by go/gitwatcher - Please do not modify manually [ID: 530458]
Maintained by go/gitwatcher - Please do not modify manually [ID: 530406]
View issue level access limits(Press Alt + Right arrow for more information)
Maintenance work
View staffing
Description
The C++ reference for assignment operators states that "All built-in assignment operators return
*this
, and most user-defined overloads also return*this
so that the user-defined operators can be used in the same manner as the built-ins."Reactor should follow suite to support expressions like
a = b = c
and avoid "surprises" that differ from C++'s behavior.See alsohttps://clang.llvm.org/extra/clang-tidy/checks/misc-unconventional-assign-operator.html .