Skip to content

Commit

Permalink
try making co_return strict
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtanov committed Jan 3, 2025
1 parent f194d34 commit ba7a220
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/seastar/core/future.hh
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ public:
template<typename... U>
std::enable_if_t<!std::is_same_v<std::tuple<std::remove_cv_t<U>...>, std::tuple<tuple_type>>, void>
uninitialized_set(U&&... vs) {
new (&_v.value) maybe_wrap_ref<T>(T(std::forward<U>(vs)...));
new (&_v.value) maybe_wrap_ref<T>(
std::identity().operator()<T>(std::forward<U>(vs)...));
}
void uninitialized_set(tuple_type&& v) {
uninitialized_set(std::move(std::get<0>(v)));
Expand Down

0 comments on commit ba7a220

Please sign in to comment.