From: Jonathan Wakely Date: Mon, 20 Mar 2023 09:30:58 +0000 (+0000) Subject: libstdc++: Remove template-head from std::expected ctor [PR109182] X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=03f745992715872982d86bf2085f956bf0173b50;p=people%2Fms%2Fgcc.git 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 --git a/libstdc++-v3/include/std/expected b/libstdc++-v3/include/std/expected index 2fe25a90d2d..95c2559e8f1 100644 --- a/libstdc++-v3/include/std/expected +++ b/libstdc++-v3/include/std/expected @@ -993,11 +993,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...>