|
|
@ -211,7 +211,7 @@ struct has_func_##func { \ |
|
|
|
private: \
|
|
|
|
private: \
|
|
|
|
typedef char one; \
|
|
|
|
typedef char one; \
|
|
|
|
typedef long two; \
|
|
|
|
typedef long two; \
|
|
|
|
template<typename U> static one test(typeof(&U::func)); \
|
|
|
|
template<typename U> static one test(decltype(&U::func)); \
|
|
|
|
template<typename U> static two test(...); \
|
|
|
|
template<typename U> static two test(...); \
|
|
|
|
public: \
|
|
|
|
public: \
|
|
|
|
enum { value = sizeof(test<T>(0)) == sizeof(char) }; \
|
|
|
|
enum { value = sizeof(test<T>(0)) == sizeof(char) }; \
|
|
|
|