Movatterモバイル変換


[0]ホーム

URL:


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

Created on1998-10-13.00:00:00 last changed277 months ago

Messages

msg93 (view)
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 usingstatic_cast subject to therestriction that the explicit conversion does not cast away constness(7.6.1.11 [expr.const.cast]), ...

to

can be performed explicitly usingstatic_cast.Thelvalue-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 astatic_cast is subject to the restriction that it doesnot cast away constness (7.6.1.11 [expr.const.cast]), ...
msg9 (view)
Date: 2003-04-25.00:00:00

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

History
DateUserActionArgs
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

[8]ページ先頭

©2009-2026 Movatter.jp