I have a class with a private char str[256];
private char str[256];
and for it I have an explicit constructor:
explicit myClass(const char *func) { strcpy(
In fact a string constant literal is neither a const char * nor a char* but a char[]. Its quite strange but written down in the c++ specifications; If you modify it the behavior is undefined because the compiler may store it in the code segment.