A
absurd
Can I cast an array to another array type with different size ? I
found my first cast statement OK with g++. But second one is not. What
is correct syntax I should use to make the second cast OK ? Thanks !
typedef char S [4];
int main()
{
char t[56];
S & s = reinterpret_cast<S &)>(t); //OK
S & s = reinterpret_cast<char [4] & >(t); //NOT OK
}
found my first cast statement OK with g++. But second one is not. What
is correct syntax I should use to make the second cast OK ? Thanks !
typedef char S [4];
int main()
{
char t[56];
S & s = reinterpret_cast<S &)>(t); //OK
S & s = reinterpret_cast<char [4] & >(t); //NOT OK
}