예제 #1
0
        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);
            }
        }
예제 #2
0
파일: error_code.hpp 프로젝트: gijs/hexer
 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;
 }
예제 #4
0
 bool
 equivalent (int code, error_condition const& condition
     ) const noexcept override
 {
     return default_error_condition (code) == condition;
 }