Allow use of c_str() on wstring.

This commit is contained in:
Adrien Destugues - PulkoMandy
2012-10-27 17:14:55 +02:00
parent 7ee53ed3bd
commit 100db087dc
+4 -1
View File
@@ -350,7 +350,10 @@ private:
public:
const charT* c_str () const
{ if (length () == 0) return ""; terminate (); return data (); }
{
static const charT null_str[1] = {0};
if (length () == 0) return null_str; terminate (); return data ();
}
void resize (size_type n, charT c);
void resize (size_type n)
{ resize (n, eos ()); }