Movatterモバイル変換


[0]ホーム

URL:


Issue 1563 - WG21 CWG Issues
Title
List-initialization and overloaded function disambiguation
Status
cd3
Section
12.3 [over.over]
Submitter
Daniel Krügler

Created on2012-10-08.00:00:00 last changed145 months ago

Messages

msg4421 (view)
Date: 2013-04-15.00:00:00

[Moved to DR at the April, 2013 meeting.]

msg4250 (view)
Date: 2013-02-15.00:00:00

Proposed resolution (February, 2013):

Change 12.3 [over.over] paragraph 1 as follows:

...The target can be

msg4103 (view)
Date: 2012-10-08.00:00:00

Presumably, 12.3 [over.over] paragraph 1,

A use of an overloaded function name without arguments is resolved incertain contexts to a function, a pointer to function or a pointer tomember function for a specific function from the overload set. Afunction template name is considered to name a set of overloadedfunctions in such contexts. The function selected is the one whosetype is identical to the function type of the target type required inthe context. [Note: That is, the class of which the functionis a member is ignored when matching a pointer-to-member-functiontype. —end note] The target can be

should apply to an example like

  double bar(double) { return 0.0; }  float bar(float) { return 0.0f; }  using fun = double(double);  fun &foo{bar};

However, there is implementation variance in whether the use ofbar is accepted or not, and the omission of a cross-referenceto 9.5.5 [dcl.init.list] might be read as indicating thatlist-initialization is not included.

History
DateUserActionArgs
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2013-10-14 00:00:00adminsetstatus: dr -> drwp
2013-05-03 00:00:00adminsetmessages: +msg4421
2013-05-03 00:00:00adminsetstatus: tentatively ready -> dr
2013-03-18 00:00:00adminsetmessages: +msg4250
2013-03-18 00:00:00adminsetstatus: drafting -> tentatively ready
2012-10-08 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp