Skip to content
Snippets Groups Projects
Commit 5194ad19 authored by Jonathan Wakely's avatar Jonathan Wakely
Browse files

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.
parent 5889c7bd
No related branches found
No related tags found
No related merge requests found
......@@ -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...>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment