| 18 | namespace detail |
| 19 | { |
| 20 | inline error_id unpack_error_id(std::exception const & ex) noexcept |
| 21 | { |
| 22 | if( detail::exception_base const * eb = dynamic_cast<detail::exception_base const *>(&ex) ) |
| 23 | return eb->get_error_id(); |
| 24 | if( error_id const * err_id = dynamic_cast<error_id const *>(&ex) ) |
| 25 | return *err_id; |
| 26 | return current_error(); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | #endif // #ifndef BOOST_LEAF_NO_EXCEPTIONS |
no test coverage detected