I am migrating some old code to a C++17 compiler. The line of code below declares a static char * and initializes it to "\n". This is giving the warning below. How do I correctly write this in C++17?
static char *infocmd0 = "\n";
[Warning] C++11 does not allow conversion from string literal to 'char *'
Aucun commentaire:
Enregistrer un commentaire