summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bourgon <peter.bourgon@gmail.com>2010-10-29 08:16:59 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-10-29 08:16:59 +0200
commit9384faf7e5f2fb58d976df8b29f979402346207a (patch)
treecb0e73df14e4babba9ac63d9827e9a31b358470d
parentdace2473f1cfea902dfd3be4a233f4092397d65a (diff)
Add function to zmq::error_t to access errnum
Signed-off-by: Peter Bourgon <peter.bourgon@gmail.com>
-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;