mirror of
https://github.com/red0124/ssp.git
synced 2025-01-22 20:55:18 +01:00
Fix compile issues for c++20 (#39)
This commit is contained in:
parent
d8dcce7f2a
commit
c5b50f2b47
@ -150,7 +150,7 @@ public:
|
||||
if constexpr (sizeof...(Ts) == 0 && is_instance_of_v<std::tuple, T>) {
|
||||
return convert_impl(elems, static_cast<T*>(nullptr));
|
||||
} else if constexpr (tied_class_v<T, Ts...>) {
|
||||
using arg_ref_tuple = std::result_of_t<decltype (&T::tied)(T)>;
|
||||
using arg_ref_tuple = std::invoke_result_t<decltype(&T::tied), T>;
|
||||
using arg_tuple = apply_trait_t<std::decay, arg_ref_tuple>;
|
||||
|
||||
return to_object<T>(
|
||||
|
2
ssp.hpp
2
ssp.hpp
@ -1843,7 +1843,7 @@ public:
|
||||
if constexpr (sizeof...(Ts) == 0 && is_instance_of_v<std::tuple, T>) {
|
||||
return convert_impl(elems, static_cast<T*>(nullptr));
|
||||
} else if constexpr (tied_class_v<T, Ts...>) {
|
||||
using arg_ref_tuple = std::result_of_t<decltype (&T::tied)(T)>;
|
||||
using arg_ref_tuple = std::invoke_result_t<decltype(&T::tied), T>;
|
||||
using arg_tuple = apply_trait_t<std::decay, arg_ref_tuple>;
|
||||
|
||||
return to_object<T>(
|
||||
|
Loading…
Reference in New Issue
Block a user