From 9384faf7e5f2fb58d976df8b29f979402346207a Mon Sep 17 00:00:00 2001 From: Peter Bourgon Date: Fri, 29 Oct 2010 08:16:59 +0200 Subject: Add function to zmq::error_t to access errnum Signed-off-by: Peter Bourgon --- include/zmq.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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; -- cgit v1.2.3