Skip to content

Commit

Permalink
init_from: use curly braces for init
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Sep 12, 2024
1 parent 34de3df commit 2a783d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/utl/init_from.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ std::optional<T> init_from(S&& s, std::index_sequence<I...>) {
if (!(c<std::tuple_element_t<I, Tuple>>(s) && ...)) {
return std::nullopt;
}
return T(m<std::tuple_element_t<I, Tuple>>(s)...);
return T{m<std::tuple_element_t<I, Tuple>>(s)...};
}

} // namespace detail
Expand Down

0 comments on commit 2a783d9

Please sign in to comment.