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


880. Built-in conditional operator for scoped enumerations

Section: 12.5  [over.built]     Status: CD2     Submitter: Daniel Krügler     Date: 25 April, 2009

[Voted into WP at March, 2010 meeting.]

12.5 [over.built] paragraphs 24-25 describe the imaginary built-in conditional operator functions. However, neither paragraph 24 (promoted arithmetic types) nor 25 (pointer and pointer-to-member types) covers scoped enumerations, whose values should be usable in conditional expressions.

(See also issue 835.)

Proposed resolution (October, 2009):

Change 12.5 [over.built] paragraph 25 as follows:

For every type T, where T is a pointer, or pointer-to-member, or scoped enumeration type, there exist candidate operator functions of the form

    T        operator?(bool, T , T );