File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ TEST_CASE("socket swap", "[socket]")
48
48
}
49
49
TEST_CASE (" rass" , " [socket]" )
50
50
{
51
- zmq::context_t ctx;
51
+ zmq::context_t ctx;
52
52
zmq::socket_t sock (ctx, zmq::socket_type::push);
53
53
sock.bind (" inproc://test" );
54
54
const std::string m = " Hello, world" ;
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ class message_t
280
280
}
281
281
282
282
#if defined(ZMQ_BUILD_DRAFT_API) && defined(ZMQ_CPP11)
283
- // this function is too greedy, must add
283
+ // TODO: this function is too greedy, must add
284
284
// SFINAE for begin and end support.
285
285
template <typename T>
286
286
explicit message_t (const T &msg_) : message_t(std::begin(msg_), std::end(msg_))
@@ -654,7 +654,8 @@ enum class send_flags : int
654
654
655
655
constexpr send_flags operator |(send_flags a, send_flags b) noexcept
656
656
{
657
- return static_cast <send_flags>(static_cast <int >(a) | static_cast <int >(b));
657
+ return static_cast <send_flags>(static_cast <std::underlying_type<send_flags>::type>(a)
658
+ | static_cast <<std::underlying_type<send_flags>::type>(b));
658
659
}
659
660
660
661
enum class recv_flags : int
You can’t perform that action at this time.
0 commit comments