On 12/17/2012 03:25 PM, George H. Barbehenn wrote:
I'm not sure why the compiler is confusing the overloads, is "String st" somehow equivalent to "char *st"?
This depends on your environment, GCC doesn't provide a String type.I suspect that GCC and the C++03 standard resolve the call to the char * variant of the method, and do not take a constructor String(const char *) into account, even if it existed.
-- Florian Weimer / Red Hat Product Security Team