 |
C++ deprecated conversion from string constant to 'char*' - Stack Overflow
I have a class with a private char str[256]; and for it I have an explicit constructor: explicit myClass(const char *func) { strcpy(str,func); } I call it as: myClass obj("example"); Whe... ... The warning: deprecated conversion from string constant to 'c
stackoverflow.com |
 |