| 47 | #include <algorithm> |
| 48 | |
| 49 | std::string System_error::message () const |
| 50 | { |
| 51 | std::string mesg(action); |
| 52 | if (!target.empty()) { |
| 53 | mesg += ": "; |
| 54 | mesg += target; |
| 55 | } |
| 56 | if (error) { |
| 57 | mesg += ": "; |
| 58 | mesg += strerror(error); |
| 59 | } |
| 60 | return mesg; |
| 61 | } |
| 62 | |
| 63 | void temp_fstream::open (std::ios_base::openmode mode) |
| 64 | { |