Skip to content

[BUG] Permit operator= with in this (via function metafunction @proxy) #452

Closed as not planned
@JohelEGP

Description

@JohelEGP

Title: Permit operator= with in this.

Description:

operator= sets the value of this object, so the this parameter can be anything but in (which would imply const)
-- 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_.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions