| 43 | } |
| 44 | |
| 45 | asio_error_handler::error pop() { |
| 46 | idx = (idx == 0 ? size - 1 : idx - 1); |
| 47 | if(unhandled > 0) --unhandled; |
| 48 | else { |
| 49 | log_error("error underflow (no errors are currently unhandled)"); |
| 50 | } |
| 51 | return errors[idx]; |
| 52 | } |
| 53 | |
| 54 | asio_error_handler::error peek() { |
| 55 | if(unhandled == 0) return {}; |