X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gcc-libstdc%2B%2B-bastring.patch;fp=gcc-libstdc%2B%2B-bastring.patch;h=0000000000000000000000000000000000000000;hb=9a684d098f85bd726d2dd1d7deeb7195e3fae510;hp=6aae8da30b7f405e1e97112e2f252756d6c30fa8;hpb=d56c41663a978696c87649e8a01e7daf3d9fc105;p=packages%2Fgcc.git diff --git a/gcc-libstdc++-bastring.patch b/gcc-libstdc++-bastring.patch deleted file mode 100644 index 6aae8da..0000000 --- a/gcc-libstdc++-bastring.patch +++ /dev/null @@ -1,46 +0,0 @@ -/* -From: Richard Kettlewell -To: submit@bugs.debian.org -Subject: Bug#46550: basic_string can't be instantiated -Date: Sun, 3 Oct 1999 22:49:50 +0100 - -Package: libstdc++2.9-dev -Version: 2.91.60-5 - -Hi, - -This ought to work, but it doesn't: - ------------------------------------------------------------------------- -lyonesse$ cat t.cc -*/ - -#include - -template basic_string; - -/* -lyonesse$ c++ -c t.cc -/usr/include/g++-2/std/bastring.h: In method `const __wchar_t * basic_string<__wchar_t,string_char_traits<__wchar_t>,__default_alloc_template >::c_str<__wchar_t, string_char_traits<__wchar_t>, alloc>() const': -t.cc:3: instantiated from here -/usr/include/g++-2/std/bastring.h:301: return to `const __wchar_t *' from `char *' -lyonesse$ ------------------------------------------------------------------------- - -# DP: Here is a patch to /usr/include/g++-2/std/bastring.h which makes it -# DP: work for me (though note that I have not tested the c_str() method as -# DP: such): - ------------------------------------------------------------------------- ---- libstdc++/std/bastring.h.orig Sun Oct 3 22:32:06 1999 -+++ libstdc++/std/bastring.h Sun Oct 3 22:36:17 1999 -@@ -332,7 +332,8 @@ - - public: - const charT* c_str () const -- { if (length () == 0) return ""; terminate (); return data (); } -+ { const charT* null_str = ""; -+ if (length () == 0) return null_str; terminate (); return data (); } - void resize (size_type n, charT c); - void resize (size_type n) - { resize (n, eos ()); }