| 123456789101112131415161718192021222324252627282930313233343536 | #include <string>template <typename... Args>std::string cmStrCat(Args&&... args){  return "";}std::string a = "This is a string variable";std::string b = " and this is a string variable";std::string concat;// Correction neededvoid test1(){  concat = a + b;  concat = a + " and this is a string literal";  concat = a + 'O';  concat = "This is a string literal" + b;  concat = 'O' + a;  concat = a + " and this is a string literal" + 'O' + b;  concat += b;  concat += " and this is a string literal";  concat += 'o';  concat += b + " and this is a string literal " + 'o' + b;}// No correction neededvoid test2(){  a = b;  a = "This is a string literal";  a = 'X';  cmStrCat(a, b);}
 |