CWG Issue 1385 (original) (raw)

This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-11-05


1385. Syntactic forms of conversion functions for surrogate call functions

Section: 12.2.2.3 [over.match.oper]Status: CD3Submitter: Daniel KrüglerDate: 2011-08-31

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

In 12.2.2.2.3 [over.call.object] paragraph 2, the non-explicit conversion functions considered for producing surrogate call functions are those of the form

operator conversion-type-id () attribute-specifier-seqopt cv-qualifier ;

This (presumably inadvertently) excludes conversion functions with a ref-qualifier and/or an exception-specification.

Proposed resolution (February, 2012):

Change 12.2.2.2.3 [over.call.object] paragraph 2 as follows:

In addition, for each non-explicit conversion function declared inT of the form

operator conversion-type-id () attribute-specifier-seqopt cv-qualifier ref-qualifieropt exception-specificationopt attribute-specifier-seqopt ;

where cv-qualifier is the same...