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

2024-12-19


2125. Copy elision and comma operator

Section: 11.9.6  [class.copy.elision]     Status: NAD     Submitter: Vinny Romano     Date: 2015-05-06

Currently, 11.4.5.3 [class.copy.ctor] paragraphs 31-32 apply only to the name of a local variable in determining whether a return expression is a candidate for copy elision or move construction. Would it make sense to extend that to include the right operand of a comma operator?

EWG 2022-11-11

This is a request for a new feature, which should be proposed in a paper to EWG.