template<typename T>
bool is_class(int T::*)
{
return true;
}
template<typename T>
bool is_class(...)
{
return false;
}
class Test{};
void main()
{
if(is_class<Test>(0))
{
cout<< "is the class" <<endl;
}
else
{
cout<< "not the class" <<endl;
}
cin.get();
}