Hi,
Now, I have some problem with ccs or evm6474.
//test_dynamic.cpp
#include <iostream>
using namespace std;
struct B1{
virtual ~B1(){}
};
struct B2{
virtual ~B2(){}
};
struct D1 : B1, B2{};
int main()
{
D1 d;
B1* pb1 = &d;
B2* pb2 = dynamic_cast<B2*>(pb1);//L1
B2* pb22 = static_cast<B2*>(pb1); //L2
return 0;
}
warning: "dynamic_cast" is reserved for future use as a keyword
"test_dynamic.cpp", line 16: error: identifier "dynamic_cast" is undefined
"test_dynamic.cpp", line 16: error: type name is not allowed
"test_dynamic.cpp", line 16: error: expected an expression
"test_dynamic.cpp", line 17: error: invalid type conversion
Is ccs NOT compatible with "dynamic_cast"? Is there any other solution instead of "dynamic_cast"? OR, is there some error in my ccs's configuration?
best wishes!
thanks