Hi,
I need to check if the pointer const char* const points to an empty string.
Something like this:
However, the code above gives me an error:Code:const char* const a = ... if (&a == "") { cout << "empty string!"; }
error C2446 '==': no conversion from 'const char*' to 'const char *const *'
so I guess I am doing something wrong.
Could someone help please?
Thanks.