Skip to content

Commit 9b824dd

Browse files
authored
Merge pull request #407 from jcfr/fix-macos-10.11.6-default-init-error
Fix error: default initialization of an object of const type
2 parents bb321ee + 5e28623 commit 9b824dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

zmq.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,19 +1301,19 @@ template<int Opt, int NullTerm = 1> struct array_option
13011301

13021302
#define ZMQ_DEFINE_INTEGRAL_OPT(OPT, NAME, TYPE) \
13031303
using NAME##_t = integral_option<OPT, TYPE, false>; \
1304-
ZMQ_INLINE_VAR ZMQ_CONSTEXPR_VAR NAME##_t NAME
1304+
ZMQ_INLINE_VAR ZMQ_CONSTEXPR_VAR NAME##_t NAME{}
13051305
#define ZMQ_DEFINE_INTEGRAL_BOOL_UNIT_OPT(OPT, NAME, TYPE) \
13061306
using NAME##_t = integral_option<OPT, TYPE, true>; \
1307-
ZMQ_INLINE_VAR ZMQ_CONSTEXPR_VAR NAME##_t NAME
1307+
ZMQ_INLINE_VAR ZMQ_CONSTEXPR_VAR NAME##_t NAME{}
13081308
#define ZMQ_DEFINE_ARRAY_OPT(OPT, NAME) \
13091309
using NAME##_t = array_option<OPT>; \
1310-
ZMQ_INLINE_VAR ZMQ_CONSTEXPR_VAR NAME##_t NAME
1310+
ZMQ_INLINE_VAR ZMQ_CONSTEXPR_VAR NAME##_t NAME{}
13111311
#define ZMQ_DEFINE_ARRAY_OPT_BINARY(OPT, NAME) \
13121312
using NAME##_t = array_option<OPT, 0>; \
1313-
ZMQ_INLINE_VAR ZMQ_CONSTEXPR_VAR NAME##_t NAME
1313+
ZMQ_INLINE_VAR ZMQ_CONSTEXPR_VAR NAME##_t NAME{}
13141314
#define ZMQ_DEFINE_ARRAY_OPT_BIN_OR_Z85(OPT, NAME) \
13151315
using NAME##_t = array_option<OPT, 2>; \
1316-
ZMQ_INLINE_VAR ZMQ_CONSTEXPR_VAR NAME##_t NAME
1316+
ZMQ_INLINE_VAR ZMQ_CONSTEXPR_VAR NAME##_t NAME{}
13171317

13181318
// duplicate definition from libzmq 4.3.3
13191319
#if defined _WIN32

0 commit comments

Comments
 (0)