N
nobody
With Visual C++ 2005 beta 2, I get the below compling error for the
following code. I think this error is not acceptable to me because
int::typeid is a constant and is known to compiler when compiling. Will VC++
2005 implement switch with case int::typeid in the final release?
error C2450: switch expression of type 'System::Type ^' is illegal
1> No user-defined-conversion operator available, or
1> Integral expression required
1>.\sproadapter.cpp(271) : error C2051: case expression not constant
Type ^t = obData->GetType();
switch (t)
{
case int::typeid:
break;
default:
break;
}
following code. I think this error is not acceptable to me because
int::typeid is a constant and is known to compiler when compiling. Will VC++
2005 implement switch with case int::typeid in the final release?
error C2450: switch expression of type 'System::Type ^' is illegal
1> No user-defined-conversion operator available, or
1> Integral expression required
1>.\sproadapter.cpp(271) : error C2051: case expression not constant
Type ^t = obData->GetType();
switch (t)
{
case int::typeid:
break;
default:
break;
}