Closed as not planned
Description
Title: Permit operator=
with in this
.
Description:
operator=
sets the value ofthis
object, so thethis
parameter can be anything butin
(which would implyconst
)
-- https://github.com/hsutter/cppfront/wiki/Cpp2:-operator=,-this-&-that#operator-is-the-name-for-all-value-setting-functions-construction-assignment-conversion-and-destruction.
There are use cases when the target of assignment isn't part of the value of this
.
For example: https://eel.is/c++draft/pairs#lib:operator=,pair_.