How can I define a multiline raw string literal that can be concatenated with other variables? The following does not compile:
#define theValue 1000
static std::string str = R"(
foo )" + theValue + R"( bar
)";
std::to_string should help you out with this one
#define theValue 1000
static std::string str = R"(
foo )" + std::to_string(theValue) + R"( bar
)";
In the general case, you need strings or something that can be implicitly converted into a string in order to use std::string's concatenation operator.