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


1806. Virtual bases and move-assignment

Section:11.4.6  [class.copy.assign]    Status:CD4    Submitter:Richard Smith    Date:2013-11-04

[Moved to DR at the November, 2014 meeting.]

The proposed resolution forissue 1402overlooked some needed changes in 11.4.5.3 [class.copy.ctor] paragraph28.

Proposed resolution (February, 2014):

Change 11.4.5.3 [class.copy.ctor] paragraph 28 as follows:

...It is unspecified whether subobjects representing virtualbase classes are assigned more than once by theimplicitly-defined copy/move assignmentoperator. [Example:

  struct V { };  struct A : virtual V { };  struct B : virtual V { };  struct C : B, A { };

It is unspecified whether the virtual base classsubobjectV is assigned twice by theimplicitly-defined copy/move assignment operatorforC. —end example][Note:This does not apply to move assignment, as a defaulted moveassignment operator is deleted if the class has virtualbases. —end note]




[8]ページ先頭

©2009-2026 Movatter.jp