Title
Redundant case in restricting user-defined conversion sequences
Status
open
Section
12.2.4.2.1 [over.best.ics.general]
Submitter
Krystian Stasiowski

Created on 2020-03-13.00:00:00 last changed 13 months ago

Messages

Date: 2023-11-23.22:05:41

Suggested resolution:

Change in 12.2.4.2.1 [over.best.ics.general] paragraph 4 as follows:

However, if the target is
  • ...
and the constructor ... is a candidate by user-defined conversion sequences are not considered.
Date: 2020-03-13.00:00:00

(From editorial issue 3871.)

Subclause 12.2.4.2.1 [over.best.ics.general] paragraph 4 specifies:

However, if the target is
  • the first parameter of a constructor or
  • ...
and the constructor ... is a candidate by user-defined conversion sequences are not considered.

A temporary is no longer created in 9.4.1 [dcl.init.general] bullet 16.6.3 "for the remaining copy-initialization cases". Instead, that section directly branches to 12.2.2.5 [over.match.copy], which is covered by the fourth bullet above.

History
Date User Action Args
2023-11-23 22:05:41adminsetmessages: + msg7524
2020-03-13 00:00:00admincreate