#include <iostream>
using namespace std;
class F
{
};
class S : public F
{
};
template<typename X,typename Y>
class check
{
class F { };
static F find( ...);
class T { F f[2]; };
static T find(Y*);
public:
enum
{
m=sizeof(T)==
sizeof(find(static_cwst<X*>(0)))
};
};
template <class Q, class R>
bool checkIf( )
{
return check< Q, R>: :m;
}
int main( )
{
check <class F, class S> t (F,S);
cout <<checkIf<class F, class S>()<<end1;
return 0;
}
Answers
Answered by
0
Answer:
sorry I didn't know the answer
Answered by
0
sorry but I don't know this answer
Similar questions