Title
Reference qualification of copy assignment operators
Status
nad
Section
11.4.6 [class.copy.assign]
Submitter
Alberto Ganesh Barbati

Created on 2008-10-09.00:00:00 last changed 179 months ago

Messages

Date: 2009-07-15.00:00:00

Rationale (July, 2009):

The LWG decided not to add reference qualifiers in the library, which reduces the motivation for making this change to implicit assignment operators.

Date: 2022-11-20.07:54:16

For increased regularity between built-in types and class types, the copy assignment operator can be qualified with &, preventing assignment to an rvalue. The LWG is making that change in the Standard Library. It would seem a good idea to make a similar change, where possible, in the specification of implicitly-declared assignment operators. This would be the case when all subobjects of class type have a non-deleted copy assignment operator that is &-qualified.

History
Date User Action Args
2009-08-03 00:00:00adminsetmessages: + msg2279
2009-08-03 00:00:00adminsetstatus: open -> nad
2008-10-09 00:00:00admincreate