Merge pull request #52 from Ecte86/patch-1
added standard c++ method c_str to opp::string that calls cstr method.
This commit is contained in:
commit
89ac4ee9b9
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue