I'm trying to replace "\n" with "\n" but I'm not allowed to do it with this function:
std::replace(encryptedKey.begin(), encryptedKey.end(), "\n", "\\n");
encryptedKey is a long string.
I think I get the error because I'm trying to replace with more characters, is there any other solutions for doing this in a string?
Edit 1:
Error : Severity Code Description Project File Line Suppression State Error (active) E0304 no instance of function template "std::replace" matches the argument list encryption c:\Users\heltbork\source\repos\encryption\encryption\encryption.cpp 274