virtual bool equivalent( int code, const boost::system::error_condition& condition) const { // Any match with the code's default condition is equivalent. The // switch below only needs to match _extra_ conditions that are // also equivalent if (condition == default_error_condition(code)) { return true; } switch (code) { case LIBSSH2_FX_OP_UNSUPPORTED: return condition == boost::system::errc::not_supported; default: return condition == default_error_condition(code); } }
inline bool error_category::equivalent( int code, const error_condition & condition ) const { return default_error_condition( code ) == condition; }
bool equivalent (int ev, boost::system::error_condition const& condition) const noexcept { return default_error_condition (ev) == condition; }
bool equivalent (int code, error_condition const& condition ) const noexcept override { return default_error_condition (code) == condition; }