diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-03-20 09:30:58 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-03-20 09:33:23 +0000 |
commit | 5194ad1958cbfe800357571fad68be8bc8b7d915 (patch) | |
tree | c905811404729bafd08f829e45d0a9333c5b1069 | |
parent | 5889c7bd46a45dc07ffb77ec0d698e18e0b99840 (diff) | |
download | gcc-5194ad1958cbfe800357571fad68be8bc8b7d915.zip gcc-5194ad1958cbfe800357571fad68be8bc8b7d915.tar.gz gcc-5194ad1958cbfe800357571fad68be8bc8b7d915.tar.bz2 |
libstdc++: Remove template-head from std::expected<void> 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<void>::expected(in_place_t)):
Remove template-head.
-rw-r--r-- | libstdc++-v3/include/std/expected | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libstdc++-v3/include/std/expected b/libstdc++-v3/include/std/expected index 9a52e25..567a519 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<typename... _Args> - constexpr explicit - expected(in_place_t) noexcept - : expected() - { } + constexpr explicit + expected(in_place_t) noexcept + : expected() + { } template<typename... _Args> requires is_constructible_v<_Er, _Args...> |