Movatterモバイル変換


[0]ホーム

URL:


This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-11-05


809. Deprecation of theregister keyword

Section:9.2.2  [dcl.stc]    Status:CD2    Submitter:UK    Date:3 March, 2009

N2800 comment UK 86

[Voted into WP at October, 2009 meeting.]

Theregisterkeyword serves very little function, offering no more thana hint that a note says is typically ignored. It should bedeprecated in this version of the standard, freeing thereserved name up for use in a future standard, much likeauto has been re-used this time around for being similarlyuseless.

Notes from the March, 2009 meeting:

The consensus of the CWG was in favor of deprecatingregister.

Proposed resolution (September, 2009):

  1. Change 9.2.2 [dcl.stc] paragraph 3 as follows:

  2. Aregister specifier is a hint to the implementation that theobject so declared will be heavily used. [Note: the hint can beignored and in most implementations it will be ignored if the addressof the object is taken.This use is deprecated (see[depr.register]).end note]
  3. Add a new section following _N3000_.D.4 [depr.string]:

  4. register keyword [depr.register]

    The use of theregister keyword as astorage-class-specifier is deprecated (see 9.2.2 [dcl.stc]).




[8]ページ先頭

©2009-2025 Movatter.jp