Title
Cv-qualification and char-alias access to out-of-lifetime objects
Status
cd1
Section
6.7.3 [basic.life]
Submitter
Mike Miller

Created on 2001-03-14.00:00:00 last changed 161 months ago

Messages

Date: 2003-04-15.00:00:00

[Voted into WP at April 2003 meeting.]

Date: 2001-04-15.00:00:00

Proposed resolution (04/01):

In 6.7.3 [basic.life] paragraph 6 change the third bullet:

  • the lvalue is used as the operand of a static_cast (7.6.1.9 [expr.static.cast]) (except when the conversion is ultimately to char& or unsigned char&), or
to read:
  • the lvalue is used as the operand of a static_cast (7.6.1.9 [expr.static.cast]) except when the conversion is ultimately to cv char& or cv unsigned char&, or

Date: 2001-04-15.00:00:00

Notes on 04/01 meeting:

The wording should be changed to allow cv-qualified char types.

Date: 2001-03-14.00:00:00

The wording in 6.7.3 [basic.life] paragraph 6 allows an lvalue designating an out-of-lifetime object to be used as the operand of a static_cast only if the conversion is ultimately to "char&" or "unsigned char&". This description excludes the possibility of using a cv-qualified version of these types for no apparent reason.

History
Date User Action Args
2008-10-05 00:00:00adminsetstatus: wp -> cd1
2003-04-25 00:00:00adminsetmessages: + msg859
2003-04-25 00:00:00adminsetstatus: ready -> wp
2002-11-08 00:00:00adminsetstatus: review -> ready
2001-11-09 00:00:00adminsetmessages: + msg549
2001-11-09 00:00:00adminsetstatus: drafting -> review
2001-05-20 00:00:00adminsetmessages: + msg492
2001-05-20 00:00:00adminsetstatus: open -> drafting
2001-03-14 00:00:00admincreate