We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b64a34 commit 3e3fe85Copy full SHA for 3e3fe85
zmq.hpp
@@ -250,12 +250,13 @@ typedef zmq_pollitem_t pollitem_t;
250
class error_t : public std::exception
251
{
252
public:
253
- error_t() : errnum(zmq_errno()) {}
+ error_t() ZMQ_NOTHROW : errnum(zmq_errno()) {}
254
+ explicit error_t(int err) ZMQ_NOTHROW : errnum(err) {}
255
virtual const char *what() const ZMQ_NOTHROW ZMQ_OVERRIDE
256
257
return zmq_strerror(errnum);
258
}
- int num() const { return errnum; }
259
+ int num() const ZMQ_NOTHROW { return errnum; }
260
261
private:
262
int errnum;
0 commit comments