(c_str): Change return of "" to return of traits::empty() call so that proper...

(c_str): Change return of "" to return of traits::empty() call so that
proper empty string is returned based on the character type (i.e. ""
or L"").

From-SVN: r25246
This commit is contained in:
Baron Roberts 1999-02-16 11:58:18 +00:00 committed by Ulrich Drepper
parent 769affc265
commit ce03e9e15a

View file

@ -298,7 +298,8 @@ private:
public:
const charT* c_str () const
{ if (length () == 0) return ""; terminate (); return data (); }
{ if (length () == 0) return traits::empty();
terminate (); return data (); }
void resize (size_type n, charT c);
void resize (size_type n)
{ resize (n, eos ()); }