missing cast in bastring.h
Andrew Pimlott
pimlott@idiomtech.com
Sat Apr 24 15:15:00 GMT 1999
I have
gcc version egcs-2.91.66 Debian GNU/Linux (egcs-1.1.2 release)
I get the error
/usr/include/g++-2/std/bastring.h:301: return to `const FChar *' from `char *'
Something like the following is needed:
--- bastring.h.orig Sun Apr 25 06:21:13 1999
+++ bastring.h Sun Apr 25 06:21:16 1999
@@ -298,7 +298,7 @@
public:
const charT* c_str () const
- { if (length () == 0) return ""; terminate (); return data (); }
+ { if (length () == 0) return reinterpret_cast<charT *>(""); terminate (); return data (); }
void resize (size_type n, charT c);
void resize (size_type n)
{ resize (n, eos ()); }
More information about the Gcc-bugs
mailing list