In C ++, as in C, string litterals separated by a space are implicitly concatenated, therefore
"foo" "bar"
is equivalent to:
"foobar"
So you want:
static const string message = "This is a message.\n" "It continues in the next line";
anon
source share