This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112c. See for the official list.


1392. Explicit conversion functions for references and non-references

Section:  [over.match.ref]     Status: CD3     Submitter: Jason Merrill     Date: 2011-09-08

[Moved to DR at the October, 2012 meeting.]

In [over.match.conv], dealing with non-reference initialization, direct initialization considers as candidate functions only those that

yield type T or a type that can be converted to type T with a qualification conversion

By contrast, [over.match.ref], dealing with reference binding, requires only that the type returned be reference-compatible with the target, permitting both qualification conversions and derived-to-base conversions. This discrepancy is presumably unintentional.

Proposed resolution (February, 2012):

Change [over.match.ref] paragraph 1 as follows:

...the candidate functions are selected as follows: