| 662 | } // namespace detail |
| 663 | |
| 664 | inline bool is_error_id( std::error_code const & ec ) noexcept |
| 665 | { |
| 666 | bool res = (&ec.category() == &detail::get_leaf_error_category<>::cat); |
| 667 | BOOST_LEAF_ASSERT(!res || !ec.value() || ((ec.value()&3) == 1)); |
| 668 | return res; |
| 669 | } |
| 670 | |
| 671 | #endif // #if BOOST_LEAF_CFG_STD_SYSTEM_ERROR |
| 672 |