Skip to content

Commit 4dd03c9

Browse files
authored
Fix constraint on __optional::__emplace_from. (#1661)
The `_Args` template parameter pack is currently not passed to the `__optional<_Tp>::__emplace_from` constraint that checks that the return-type of invoking `_Fn` with `_Args...` is `_Tp`.
1 parent 770f795 commit 4dd03c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/stdexec/__detail/__optional.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ namespace stdexec {
106106
}
107107

108108
template <class _Fn, class... _Args>
109-
requires same_as<_Tp, __call_result_t<_Fn>>
109+
requires same_as<_Tp, __call_result_t<_Fn, _Args...>>
110110
auto __emplace_from(_Fn&& __f, _Args&&... __args) noexcept(__nothrow_callable<_Fn, _Args...>)
111111
-> _Tp& {
112112
reset();

0 commit comments

Comments
 (0)