From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 192BA3858D20; Mon, 20 Mar 2023 09:36:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 192BA3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679304965; bh=q7YZMHMKlHdOmFKyseGy0aGkZrheHwJj084JLX1UMJs=; h=From:To:Subject:Date:From; b=pjWygcIqHvsts/Q51ZzUKQfGejGt/NQGDBgIM9GCzQeH3Mo7YZxFVsqJ9XOZIaLI6 iDVToclTDa7/7OBtH7AvoNRBRTKX2JaY9QIVu4UJSwxYSHy7Lc0S28+zGcuN3Edqpy cxIQLl8vQwP/Ioa5T9Yzbm451xLo7a0eAS7XiZnE= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-6759] libstdc++: Remove template-head from std::expected ctor [PR109182] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 5889c7bd46a45dc07ffb77ec0d698e18e0b99840 X-Git-Newrev: 5194ad1958cbfe800357571fad68be8bc8b7d915 Message-Id: <20230320093605.192BA3858D20@sourceware.org> Date: Mon, 20 Mar 2023 09:36:05 +0000 (GMT) List-Id: https://gcc.gnu.org/g:5194ad1958cbfe800357571fad68be8bc8b7d915 commit r13-6759-g5194ad1958cbfe800357571fad68be8bc8b7d915 Author: Jonathan Wakely Date: Mon Mar 20 09:30:58 2023 +0000 libstdc++: Remove template-head from std::expected ctor [PR109182] The presence of a template-head on this constructor is a copy & paste error from the primary template. libstdc++-v3/ChangeLog: PR libstdc++/109182 * include/std/expected (expected::expected(in_place_t)): Remove template-head. Diff: --- libstdc++-v3/include/std/expected | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/include/std/expected b/libstdc++-v3/include/std/expected index 9a52e2574bf..567a5195e8d 100644 --- a/libstdc++-v3/include/std/expected +++ b/libstdc++-v3/include/std/expected @@ -1302,11 +1302,10 @@ namespace __expected : _M_unex(std::move(__u).error()), _M_has_value(false) { } - template - constexpr explicit - expected(in_place_t) noexcept - : expected() - { } + constexpr explicit + expected(in_place_t) noexcept + : expected() + { } template requires is_constructible_v<_Er, _Args...>