I was recently modifying some code, and found a pre-existing bug on one line within a function:
std:;string x = y;
This code still compiles and has been working as expected.
The string definition works because this file is using namespace std;
, so the std::
was unnecessary in the first place.
The question is, why is std:;
compiling and what, if anything, is it doing?