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(
Maybe you can try this:
void foo(const char* str) { // Do something } foo("Hello")
It works for me