I can do what the following code shows:
std::string a = \"chicken \"; std::string b = \"nuggets\"; std::string c = a + b;
However, this fails:<
"chicken " and "nuggets" are literal C-string and not std::string.
"chicken "
"nuggets"
std::string
You may concatenate directly with:
std::string c = "chicken " "nuggets";
Since C++14, you may add suffix s to have string
s
using namespace std::string_literals; std::string c = "chicken "s + "nuggets"s;