namespace fs
{
//测试是否存在从T到U的隐式类型转换
template<typename T,typename U>
class ExistConvert
{
static T MakeT();
static char Test(U); //隐式类型转换
static int Test(...);
public:
enum{exist = (sizeof(Test(MakeT())) == sizeof(char))};
};
}
namespace fs
{
//测试是否存在从T到U的隐式类型转换
template<typename T,typename U>
class ExistConvert
{
static T MakeT();
static char Test(U); //隐式类型转换
static int Test(...);
public:
enum{exist = (sizeof(Test(MakeT())) == sizeof(char))};
};
}