C ++ SFINAE 예제? 더 많은 템플릿 메타 프로그래밍에 들어가고 싶습니다. SFINAE는 "대체 실패는 오류가 아닙니다"를 의미합니다. 그러나 누군가 SFINAE를 잘 사용한다는 것을 보여줄 수 있습니까? 여기에 하나의 예가 있습니다 ( here ). template class IsClassT { private: typedef char One; typedef struct { char a[2]; } Two; template static One test(int C::*); // Will be chosen if T is anything except a class. template static Two test(...); public: enum { Yes = sizeof(IsClassT::test(0)) ..