Commit ce03e9e1 by Baron Roberts Committed by Ulrich Drepper

(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
parent 769affc2
...@@ -298,7 +298,8 @@ private: ...@@ -298,7 +298,8 @@ private:
public: public:
const charT* c_str () const 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, charT c);
void resize (size_type n) void resize (size_type n)
{ resize (n, eos ()); } { resize (n, eos ()); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment