Skip to content

Commit ba7a220

Browse files
committed
try making co_return strict
1 parent f194d34 commit ba7a220

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/seastar/core/future.hh

+2-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ public:
307307
template<typename... U>
308308
std::enable_if_t<!std::is_same_v<std::tuple<std::remove_cv_t<U>...>, std::tuple<tuple_type>>, void>
309309
uninitialized_set(U&&... vs) {
310-
new (&_v.value) maybe_wrap_ref<T>(T(std::forward<U>(vs)...));
310+
new (&_v.value) maybe_wrap_ref<T>(
311+
std::identity().operator()<T>(std::forward<U>(vs)...));
311312
}
312313
void uninitialized_set(tuple_type&& v) {
313314
uninitialized_set(std::move(std::get<0>(v)));

0 commit comments

Comments
 (0)