CWG Issue 2016 (original) (raw)
This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 117a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-04-13
2016. Confusing wording in description of conversion function
Section: 11.4.8.3 [class.conv.fct]Status: CD4Submitter: Daniel KrüglerDate: 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-specifier_s 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 ofissue 1990.