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

2024-04-18


1739. Conversion of floating point to enumeration

Section: 7.6.1.9  [expr.static.cast]     Status: C++14     Submitter: Ville Voutilainen     Date: 2013-08-18

[Moved to DR at the February, 2014 meeting.]

The specification of conversion from integral or enumeration type in 7.6.1.9 [expr.static.cast] paragraph 10 uses the phrase “explicitly converted,” while the description of conversion from floating point to enumeration omits the word “explicitly.” Presumably these should be harmonized.

Proposed resolution (January, 2014):

Change 7.6.1.9 [expr.static.cast] paragraph 10 as follows:

...A value of floating-point type can also be explicitly converted to an enumeration type...