]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Remove template-head from std::expected<void> ctor [PR109182]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 20 Mar 2023 09:30:58 +0000 (09:30 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 20 Mar 2023 09:33:23 +0000 (09:33 +0000)
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.

libstdc++-v3/include/std/expected

index 9a52e2574bfb0d272b23b8f046f147acd19ec7d1..567a5195e8d0c936bddf21ec39d5d64d60dd93d8 100644 (file)
@@ -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...>
This page took 0.061974 seconds and 5 git commands to generate.