Skip to content

Commit b07090f

Browse files
tcbrindlegithub-actions[bot]
authored andcommitted
Update single header
1 parent 75648b7 commit b07090f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

single_include/flux.hpp

+3-7
Original file line numberDiff line numberDiff line change
@@ -8859,14 +8859,10 @@ namespace detail {
88598859
template <std::size_t N>
88608860
inline constexpr auto variant_emplace =
88618861
[]<typename... Types>(std::variant<Types...>& variant, auto&&... args) {
8862-
if constexpr (__cpp_lib_variant >= 202106L) {
8863-
variant.template emplace<N>(FLUX_FWD(args)...);
8862+
if (std::is_constant_evaluated()) {
8863+
variant = std::variant<Types...>(std::in_place_index<N>, FLUX_FWD(args)...); // LCOV_EXCL_LINE
88648864
} else {
8865-
if (std::is_constant_evaluated()) {
8866-
variant = std::variant<Types...>(std::in_place_index<N>, FLUX_FWD(args)...); // LCOV_EXCL_LINE
8867-
} else {
8868-
variant.template emplace<N>(FLUX_FWD(args)...);
8869-
}
8865+
variant.template emplace<N>(FLUX_FWD(args)...);
88708866
}
88718867
};
88728868

0 commit comments

Comments
 (0)