From c5b50f2b47abfb3c28f79915ce0e2e8af89961fe Mon Sep 17 00:00:00 2001 From: red0124 <75804778+red0124@users.noreply.github.com> Date: Fri, 1 Mar 2024 00:52:00 +0100 Subject: [PATCH] Fix compile issues for c++20 (#39) --- include/ss/converter.hpp | 2 +- ssp.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(