Thursday, January 16, 2020

Digest for comp.lang.c++@googlegroups.com - 16 updates in 3 topics

Paavo Helde <myfirstname@osa.pri.ee>: Jan 16 05:37PM +0200

In C++ there is a preprocessor step which logically comes first and
prepares the preprocessed source consisting of remaining tokens.
However, preprocessor is line-based, so it ought to conflict with the
multi-line string literals:
 
#include <iostream>
 
#if 1
 
int main() {
const char* test = R"__(
 
#else
 
)__";
std::cout << test;
}
 

No comments: