Re: Strange warnings from GCC++ 4.6.2 in Atmel Studio 6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux