File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -8859,14 +8859,10 @@ namespace detail {
8859
8859
template <std::size_t N>
8860
8860
inline constexpr auto variant_emplace =
8861
8861
[]<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
8864
8864
} 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)...);
8870
8866
}
8871
8867
};
8872
8868
You can’t perform that action at this time.
0 commit comments