Movatterモバイル変換


[0]ホーム

URL:


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

2025-12-20


1416. Function cv-qualifiers andtypeid

Section:7.6.1.8  [expr.typeid]    Status:CD3    Submitter:Daniel Krügler    Date:2011-11-17

[Moved to DR at the October, 2012 meeting.]

The requirement in 7.6.1.8 [expr.typeid] paragraph 5 that

The top-level cv-qualifiers of the glvalue expression or thetype-id that is the operand oftypeid are alwaysignored

could be misinterpreted as referring to cv-qualifiers in afunction type, even though it is clear that a function type is nevercv-qualified. A note emphasizing the fact that that is not thecase would be helpful.

Proposed resolution (February, 2012):

Change 7.6.1.8 [expr.typeid] paragraph 5 as follows:

The top-level cv-qualifiers of the glvalue expression or thetype-id that is the operand oftypeid are alwaysignored.If the type of the expression ortype-id isa cv-qualified type, the result of thetypeid expressionrefers to astd::type_info object representing thecv-unqualified type. [Example:...



[8]ページ先頭

©2009-2026 Movatter.jp