T
TheFlyingDutchman
I have code that compiled without warning in the past on other
compilers
_________________________________________________
static char *full_month_names[] =
{
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
};
________________________________________
but I am getting a warning from g++:
warning: deprecated conversion from string constant to 'char*'
Is there a way to do this without a warning that uses char * or is
this supposed to be one using a string class now?
compilers
_________________________________________________
static char *full_month_names[] =
{
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
};
________________________________________
but I am getting a warning from g++:
warning: deprecated conversion from string constant to 'char*'
Is there a way to do this without a warning that uses char * or is
this supposed to be one using a string class now?