mirror of
https://github.com/opencv/opencv.git
synced 2025-06-18 16:11:50 +08:00
Merge pull request #21081 from alalek:issue_17261
This commit is contained in:
commit
091461cece
@ -42,11 +42,11 @@ struct has_parenthesis_operator
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
template<typename T>
|
template<typename T>
|
||||||
static CV_CONSTEXPR std::true_type check(typename std::is_same<typename std::decay<decltype(std::declval<T>().operator()(std::declval<Args>()...))>::type, Ret>::type*);
|
static CV_CONSTEXPR std::true_type has_parenthesis_operator_check(typename std::is_same<typename std::decay<decltype(std::declval<T>().operator()(std::declval<Args>()...))>::type, Ret>::type*);
|
||||||
|
|
||||||
template<typename> static CV_CONSTEXPR std::false_type check(...);
|
template<typename> static CV_CONSTEXPR std::false_type has_parenthesis_operator_check(...);
|
||||||
|
|
||||||
typedef decltype(check<C>(0)) type;
|
typedef decltype(has_parenthesis_operator_check<C>(0)) type;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900/*MSVS 2015*/)
|
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900/*MSVS 2015*/)
|
||||||
|
Loading…
Reference in New Issue
Block a user