public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-9297] libstdc++: Remove template-head from std::expected<void> ctor [PR109182]
@ 2023-03-20 11:54 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-03-20 11:54 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:03f745992715872982d86bf2085f956bf0173b50

commit r12-9297-g03f745992715872982d86bf2085f956bf0173b50
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Mar 20 09:30:58 2023 +0000

    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.

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 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<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...>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-20 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 11:54 [gcc r12-9297] libstdc++: Remove template-head from std::expected<void> ctor [PR109182] Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).