Remove is_callable impl

This commit is contained in:
Vladislav Oleshko 2022-02-13 14:35:11 +03:00
parent a5ba69f5a4
commit b9dded57e8

View File

@ -258,16 +258,10 @@ namespace crow
struct is_callable struct is_callable
{ {
template<typename F2, typename... Args2> template<typename F2, typename... Args2>
static std::true_type __test(decltype(std::declval<F2>()(std::declval<Args2>()...))*) static std::true_type __test(decltype(std::declval<F2>()(std::declval<Args2>()...))*);
{
return {};
}
template<typename F2, typename... Args2> template<typename F2, typename... Args2>
static std::false_type __test(...) static std::false_type __test(...);
{
return {};
}
static constexpr bool value = decltype(__test<F, Args...>(nullptr))::value; static constexpr bool value = decltype(__test<F, Args...>(nullptr))::value;
}; };