summaryrefslogtreecommitdiff
path: root/include/zmq.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/zmq.hpp')
-rw-r--r--include/zmq.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/zmq.hpp b/include/zmq.hpp
index 4cfcdce..7b2d0b2 100644
--- a/include/zmq.hpp
+++ b/include/zmq.hpp
@@ -43,6 +43,11 @@ namespace zmq
return zmq_strerror (errnum);
}
+ int num () const
+ {
+ return errnum;
+ }
+
private:
int errnum;