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

Bug#96539: libstdc++2.10-dev: Error in bastring.h

Package: libstdc++2.10-dev
Version: 1:2.95.2-14
Severity: important

In bastring.h:

  const charT* c_str () const
    { const charT* null_str = ""; 
      if (length () == 0) return null_str; terminate (); return data (); }

The second line will _fail_ if charT is not char, which it for instance
is when instanciating the wstring class. Trying to use c_str() on a wstring
object gives this compilation error:

initialization to `const __wchar_t *' from `const char *'

-- System Information
Debian Release: woody
Kernel Version: Linux perkele 2.2.17 #3 lör jan 13 09:53:26 CET 2001 i586 unknown

Versions of the packages libstdc++2.10 depends on:
ii  libc6          2.2.2-4        GNU C Library: Shared libraries and Timezone

Reply to: