14 lines
358 B
C++
14 lines
358 B
C++
|
#include "ErrorCode.h"
|
||
|
|
||
|
namespace ZeroMQ {
|
||
|
boost::system::error_code makeErrorCode(int ev) {
|
||
|
static ErrorCategory cat;
|
||
|
|
||
|
return boost::system::error_code(ev, cat);
|
||
|
}
|
||
|
|
||
|
const char *ErrorCategory::name() const noexcept { return "ZeroMQ"; }
|
||
|
|
||
|
std::string ErrorCategory::message(int ev) const { return std::string(zmq_strerror(ev)); }
|
||
|
} // namespace ZeroMQ
|