This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
+ const char*
+ system_error::what() const throw()
+ {
+ // XXX logic seems wrong as written in draft, need to
+ // concatenate message?
+ string __s = runtime_error::what();
+ try
+ {
+ if (this->code())
+ {
+ if (!__s.empty())
+ __s += " : ";
+ __s += this->code().message();
+ }
+ }
+ catch (...) { }
+ return __s.c_str();
+ }
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |