From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 66EB4385DC05; Fri, 12 Jan 2024 09:48:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 66EB4385DC05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705052903; bh=vSkbHW8NmhGA2SiDcEtZWc4yMsZWiP+xQblMuhtTSB8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RxPYRNKcXNfwtNjb2ik6QVlCWr9Df3beKiTUQ+QewnpH6A/qe85RKrhb64YFXrDrq vG0QKHyM4Cu6aK6sJTNl0T0MAbNM1TTMgT005vDTVeiTmmI5gZcUBLtEH3xIP0vWxq WNX3mR+rsSRI9yHuy9N2OgqCUYK0Ixjui1EI1VYo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/105505] P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented Date: Fri, 12 Jan 2024 09:48:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105505 --- Comment #2 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:35f8c661d67f53486f2f3e25887323476a7d0c2b commit r14-7173-g35f8c661d67f53486f2f3e25887323476a7d0c2b Author: Jonathan Wakely Date: Thu Jan 11 22:38:02 2024 +0000 libstdc++: Implement C++23 P1951R1 (Default Args for pair's Forwarding Ctor) [PR105505] This was approved for C++23 at he June 2021 virtual meeting. This allows more efficient construction of std::pair members when {} is used as a constructor argument. The perfect forwarding constructor can be used, so that the member variables are constructed from forwarded arguments instead of being copy constructed from temporaries. libstdc++-v3/ChangeLog: PR libstdc++/105505 * include/bits/stl_pair.h (pair::pair(U1&&, U2&&)) [C++23]: Add default template arguments, as per P1951R1. * testsuite/20_util/pair/cons/default_tmpl_args.cc: New test.=