mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
Remove is_callable impl
This commit is contained in:
parent
a5ba69f5a4
commit
b9dded57e8
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user