File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change 25
25
#ifndef __ZMQ_HPP_INCLUDED__
26
26
#define __ZMQ_HPP_INCLUDED__
27
27
28
- #if __cplusplus >= 201103L
29
- #define ZMQ_CPP11
30
- #define ZMQ_NOTHROW noexcept
31
- #define ZMQ_EXPLICIT explicit
28
+ #if (__cplusplus >= 201103L)
29
+ #define ZMQ_CPP11
30
+ #define ZMQ_NOTHROW noexcept
31
+ #define ZMQ_EXPLICIT explicit
32
+ #elif (defined(_MSC_VER) && (_MSC_VER >= 1900))
33
+ #define ZMQ_CPP11
34
+ #define ZMQ_NOTHROW noexcept
35
+ #define ZMQ_EXPLICIT explicit
32
36
#else
33
37
#define ZMQ_CPP03
34
38
#define ZMQ_NOTHROW
66
70
#else
67
71
#define ZMQ_DELETED_FUNCTION
68
72
#endif
73
+ #elif defined(_MSC_VER) && (_MSC_VER >= 1900)
74
+ #define ZMQ_HAS_RVALUE_REFS
75
+ #define ZMQ_DELETED_FUNCTION = delete
69
76
#elif defined(_MSC_VER) && (_MSC_VER >= 1600)
70
77
#define ZMQ_HAS_RVALUE_REFS
71
78
#define ZMQ_DELETED_FUNCTION
@@ -111,12 +118,17 @@ namespace zmq
111
118
public:
112
119
113
120
error_t () : errnum (zmq_errno ()) {}
114
-
115
- virtual const char *what () const throw ()
121
+ # ifdef ZMQ_CPP11
122
+ virtual const char *what () const noexcept
116
123
{
117
124
return zmq_strerror (errnum);
118
125
}
119
-
126
+ #else
127
+ virtual const char *what () const throw ()
128
+ {
129
+ return zmq_strerror (errnum);
130
+ }
131
+ #endif
120
132
int num () const
121
133
{
122
134
return errnum;
You can’t perform that action at this time.
0 commit comments