I have a strange situation with the C++ compiler of Visual Studio 2012.
This is merely a test code, which should fail:
char s1[5] = "new";
char s2[5] = "old";
char const* p = s1;
p++; // should fail
p = s2; // this line should also fail;
Can someone tell me, why it works?