(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:
parent
769affc265
commit
ce03e9e15a
1 changed files with 2 additions and 1 deletions
|
@ -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 ()); }
|
||||
|
|
Loading…
Add table
Reference in a new issue