diff --git a/include/ss/converter.hpp b/include/ss/converter.hpp index c91fee7..1977fe5 100644 --- a/include/ss/converter.hpp +++ b/include/ss/converter.hpp @@ -150,7 +150,7 @@ public: if constexpr (sizeof...(Ts) == 0 && is_instance_of_v) { return convert_impl(elems, static_cast(nullptr)); } else if constexpr (tied_class_v) { - using arg_ref_tuple = std::result_of_t; + using arg_ref_tuple = std::invoke_result_t; using arg_tuple = apply_trait_t; return to_object( diff --git a/ssp.hpp b/ssp.hpp index 6ec0a11..b2925bb 100644 --- a/ssp.hpp +++ b/ssp.hpp @@ -1843,7 +1843,7 @@ public: if constexpr (sizeof...(Ts) == 0 && is_instance_of_v) { return convert_impl(elems, static_cast(nullptr)); } else if constexpr (tied_class_v) { - using arg_ref_tuple = std::result_of_t; + using arg_ref_tuple = std::invoke_result_t; using arg_tuple = apply_trait_t; return to_object(