We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f194d34 commit ba7a220Copy full SHA for ba7a220
include/seastar/core/future.hh
@@ -307,7 +307,8 @@ public:
307
template<typename... U>
308
std::enable_if_t<!std::is_same_v<std::tuple<std::remove_cv_t<U>...>, std::tuple<tuple_type>>, void>
309
uninitialized_set(U&&... vs) {
310
- new (&_v.value) maybe_wrap_ref<T>(T(std::forward<U>(vs)...));
+ new (&_v.value) maybe_wrap_ref<T>(
311
+ std::identity().operator()<T>(std::forward<U>(vs)...));
312
}
313
void uninitialized_set(tuple_type&& v) {
314
uninitialized_set(std::move(std::get<0>(v)));
0 commit comments