| 26 | |
| 27 | namespace { |
| 28 | void report_system_error(const system_error& ex) |
| 29 | { |
| 30 | cout << " threw system_error:\n" |
| 31 | << " ex.code().value() is " << ex.code().value() << '\n' |
| 32 | << " ex.code().category().name() is " << ex.code().category().name() << '\n' |
| 33 | << " ex.what() is " << ex.what() << '\n'; |
| 34 | } |
| 35 | |
| 36 | void report_filesystem_error(const system_error& ex) |
| 37 | { |