------- Additional Comments From gdr at integrable-solutions dot net 2005-05-16 00:14 ------- Subject: Re: static_cast falsely allows const to be cast away
"schlie at comcast dot net" <[EMAIL PROTECTED]> writes: | ------- Additional Comments From schlie at comcast dot net 2005-05-15 22:45 ------- | (In reply to comment #2) | > Yup, string literal should have type 'const char *'. | | I believe 'static const char []' would seem most correct? "static" is not part of the type. The ty[e of a string literal is "const char[N]", N being its sizeof. There is no if no but. Similar rule for wide string literal. -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20475