added standard c++ method c_str to opp::string that calls cstr method.

This should help Intellisense while allowing code that still uses the cstr method to work.
This commit is contained in:
Ecte 2024-03-09 19:44:59 +10:30 committed by GitHub
parent 45246a2f2d
commit b411178aae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,6 +229,10 @@ string & string::operator+=(char c)
return *this; return *this;
} }
inline const char * string::c_str(void) const
{
return this->tocstr();
}
inline const char * string::tocstr(void) const inline const char * string::tocstr(void) const
{ {