M
mthread
Hi,
I am developing a http parser in C++. When I use the statement,
char* data = "some string";
I receive the warning,
'warning : deprecated conversion from sting constant to
char*'
kindly let me know why the statement is deprecated. I have just
upgraded
my OS(from fedora 8 to fedora 9) and I did not get the warning
in my previous OS(fedora 8).
I also have a need to copy the string in character pointer as I
do all the parsing using the data available in this pointer. I would
also like to add that this warning is not shown when I use a 'const
char*'(ie const char* data = "some string" ).
I am developing a http parser in C++. When I use the statement,
char* data = "some string";
I receive the warning,
'warning : deprecated conversion from sting constant to
char*'
kindly let me know why the statement is deprecated. I have just
upgraded
my OS(from fedora 8 to fedora 9) and I did not get the warning
in my previous OS(fedora 8).
I also have a need to copy the string in character pointer as I
do all the parsing using the data available in this pointer. I would
also like to add that this warning is not shown when I use a 'const
char*'(ie const char* data = "some string" ).