File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2050,7 +2050,8 @@ constexpr auto is( X const& x ) -> auto
2050
2050
}
2051
2051
2052
2052
2053
- inline constexpr auto is ( specialization_of_template<std::variant> auto const & x, auto && value ) -> bool
2053
+ template <specialization_of_template<std::variant> X>
2054
+ inline constexpr auto is ( X const & x, auto && value ) -> bool
2054
2055
{
2055
2056
return type_find_if (x, [&]<typename It>(It const &) -> bool {
2056
2057
if (x.index () == It::index ) {
@@ -2064,8 +2065,8 @@ inline constexpr auto is( specialization_of_template<std::variant> auto const& x
2064
2065
}) != std::variant_npos;
2065
2066
}
2066
2067
2067
- template < typename C >
2068
- auto as (specialization_of_template<std::variant> auto && x CPP2_SOURCE_LOCATION_PARAM_WITH_DEFAULT_AS) -> decltype(auto )
2068
+ template < typename C, specialization_of_template<std::variant> X >
2069
+ auto as (X && x CPP2_SOURCE_LOCATION_PARAM_WITH_DEFAULT_AS) -> decltype(auto )
2069
2070
{
2070
2071
constness_like_t <C, decltype (x)>* ptr = nullptr ;
2071
2072
type_find_if (CPP2_FORWARD (x), [&]<typename It>(It const &) -> bool {
You can’t perform that action at this time.
0 commit comments