Skip to content

Commit f518a64

Browse files
committed
Problem: extended initializer lists only available in C++11
1 parent 6caa5d1 commit f518a64

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/message.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ TEST (message, create_destroy)
88

99
TEST (message, constructors)
1010
{
11-
const std::string hi {"Hi"};
12-
zmq::message_t hi_msg_a {hi.begin (), hi.end ()};
11+
const std::string hi ("Hi");
12+
zmq::message_t hi_msg_a (hi.begin (), hi.end ());
1313
ASSERT_EQ (hi_msg_a.size (), hi.size ());
14-
zmq::message_t hi_msg_b {hi.data (), hi.size ()};
14+
zmq::message_t hi_msg_b (hi.data (), hi.size ());
1515
ASSERT_EQ (hi_msg_b.size (), hi.size ());
1616
ASSERT_EQ (hi_msg_a, hi_msg_b);
1717
#if defined(ZMQ_BUILD_DRAFT_API) && defined(ZMQ_CPP11)
18-
zmq::message_t hello_msg_a {"Hello"};
18+
zmq::message_t hello_msg_a ("Hello");
1919
ASSERT_NE (hi_msg_a, hello_msg_a);
2020
ASSERT_NE (hi_msg_b, hello_msg_a);
21-
zmq::message_t hi_msg_c {hi};
21+
zmq::message_t hi_msg_c (hi);
2222
ASSERT_EQ (hi_msg_c, hi_msg_a);
2323
ASSERT_EQ (hi_msg_c, hi_msg_b);
2424
ASSERT_NE (hi_msg_c, hello_msg_a);
2525
#endif
2626
#ifdef ZMQ_HAS_RVALUE_REFS
27-
zmq::message_t hello_msg_b{zmq::message_t{"Hello"}};
27+
zmq::message_t hello_msg_b(zmq::message_t("Hello"));
2828
ASSERT_EQ (hello_msg_a, hello_msg_b);
2929
#endif
3030
}

0 commit comments

Comments
 (0)