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


1366. Deletedconstexpr constructors and virtual base classes

Section:9.2.6  [dcl.constexpr]    Status:CD3    Submitter:Sean Hunt    Date:2011-08-17

[Voted into the WP at the February, 2012 meeting;moved to DR at the October, 2012 meeting.]

The requirement that a class with aconstexpr constructorcannot have a virtual base only applies to constructors withnon-deleted and non-defaultedfunction-bodys. This seems likean oversight.

Proposed resolution (August, 2011):

Change 9.2.6 [dcl.constexpr] paragraph 4 as follows:

In aThe definition of aconstexprconstructor, each of the parameter types shall be a literal type. Inaddition, either itsfunction-body shall be= delete or= defaultor it shall satisfy the following constraints:

In addition, either itsfunction-body shall be= delete or it shall satisfy the following constraints:




[8]ページ先頭

©2009-2026 Movatter.jp