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

2024-03-20


2016. Confusing wording in description of conversion function

Section: 11.4.8.3  [class.conv.fct]     Status: CD4     Submitter: Daniel Krügler     Date: 2014-10-05

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

The statement in 11.4.8.2 [class.conv.ctor] paragraph 1,

No return type can be specified.

is confusing, since a conversion operator has a return type. It would be more precise to phrase the restriction in terms of the permissible decl-specifiers in the function's decl-specifier-seq. The next sentence is also problematic,

If a conversion function is a member function, the type of the conversion function (9.3.4.6 [dcl.fct]) is “function taking no parameter returning conversion-type-id”.

as it implies that a conversion function might not be a member function.

Proposed resolution (May, 2015):

This issue is resolved by the resolution of issue 1990.