Title
Lvalue-to-rvalue conversion before certain static_casts
Status
tc1
Section
7.6.1.9 [expr.static.cast]
Submitter
Steve Adamczyk

Created on 1998-10-13.00:00:00 last changed 263 months ago

Messages

Date: 2000-04-15.00:00:00

Proposed Resolution (10/00):

In 7.6.1.9 [expr.static.cast] paragraph 6, change

can be performed explicitly using static_cast subject to the restriction that the explicit conversion does not cast away constness (7.6.1.11 [expr.const.cast]), ...

to

can be performed explicitly using static_cast. The lvalue-to-rvalue (7.3.2 [conv.lval]), array-to-pointer (7.3.3 [conv.array]), and function-to-pointer (7.3.4 [conv.func]) conversions are applied to the operand. Such a static_cast is subject to the restriction that it does not cast away constness (7.6.1.11 [expr.const.cast]), ...
Date: 2003-04-25.00:00:00

Section 7.6.1.9 [expr.static.cast] paragraph 6 should make it clear that when any of the "inverse of any standard conversion sequence" static_casts are done, the operand undergoes the lvalue-to-rvalue conversions first.

History
Date User Action Args
2003-04-25 00:00:00adminsetstatus: dr -> tc1
2000-11-18 00:00:00adminsetstatus: ready -> dr
2000-05-21 00:00:00adminsetstatus: drafting -> ready
1999-09-14 00:00:00adminsetmessages: + msg93
1999-09-14 00:00:00adminsetstatus: open -> drafting
1998-10-13 00:00:00admincreate