I can’t realize how could it be possible to print a string this way without any complaint by the compiler:
std::cout << "Hello " "World!";
In fact, the above line works exactly like:
std::cout << "Hello " << "World!";
Is there an explanation for this behaviour?
Adjacent literal tokens are concatenated automatically, it’s part of the standard.
2.1 Phases of translation [lex.phases]
(C++03)