diff --git a/include/sqlpp11/type_traits.h b/include/sqlpp11/type_traits.h index cf377f07..5e5056f6 100644 --- a/include/sqlpp11/type_traits.h +++ b/include/sqlpp11/type_traits.h @@ -533,6 +533,16 @@ namespace sqlpp template using serializer_context_of = typename serializer_context_of_impl::type; + + template + struct in_invocable + { + template static auto test(U* p) -> decltype((*p)(std::declval()...), void(), std::true_type()); + template static auto test(...) -> decltype(std::false_type()); + + typedef decltype(test(0)) type; + static constexpr bool value = decltype(test(0))::value; + }; } #endif