Title
Built-in conditional operator for scoped enumerations
Status
cd2
Section
12.5 [over.built]
Submitter
Daniel Krügler

Created on 2009-04-25.00:00:00 last changed 171 months ago

Messages

Date: 2010-03-15.00:00:00

[Voted into WP at March, 2010 meeting.]

Date: 2009-10-15.00:00:00

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 );
Date: 2009-04-25.00:00:00

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.)

History
Date User Action Args
2010-03-29 00:00:00adminsetmessages: + msg2729
2010-03-29 00:00:00adminsetstatus: ready -> cd2
2009-11-08 00:00:00adminsetmessages: + msg2373
2009-11-08 00:00:00adminsetstatus: open -> ready
2009-04-25 00:00:00admincreate