@@ -8,23 +8,23 @@ TEST (message, create_destroy)
8
8
9
9
TEST (message, constructors)
10
10
{
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 ()) ;
13
13
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 ()) ;
15
15
ASSERT_EQ (hi_msg_b.size (), hi.size ());
16
16
ASSERT_EQ (hi_msg_a, hi_msg_b);
17
17
#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" ) ;
19
19
ASSERT_NE (hi_msg_a, hello_msg_a);
20
20
ASSERT_NE (hi_msg_b, hello_msg_a);
21
- zmq::message_t hi_msg_c {hi} ;
21
+ zmq::message_t hi_msg_c (hi) ;
22
22
ASSERT_EQ (hi_msg_c, hi_msg_a);
23
23
ASSERT_EQ (hi_msg_c, hi_msg_b);
24
24
ASSERT_NE (hi_msg_c, hello_msg_a);
25
25
#endif
26
26
#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" )) ;
28
28
ASSERT_EQ (hello_msg_a, hello_msg_b);
29
29
#endif
30
30
}
0 commit comments