Fixed decltype missed

pull/123/head
Hieromon Ikasamo 6 years ago
parent 9e778b651d
commit c585720d27
  1. 2
      src/AutoConnectDefs.h

@ -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) }; \

Loading…
Cancel
Save