mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-06 00:31:14 +01:00
Apply suggestions from code review
Co-Authored-By: gummif <ofpgummi@yahoo.com>
This commit is contained in:
parent
3d4be814e8
commit
9a60ad3fc8
5
zmq.hpp
5
zmq.hpp
@ -280,7 +280,7 @@ class message_t
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(ZMQ_BUILD_DRAFT_API) && defined(ZMQ_CPP11)
|
#if defined(ZMQ_BUILD_DRAFT_API) && defined(ZMQ_CPP11)
|
||||||
// this function is too greedy, must add
|
// TODO: this function is too greedy, must add
|
||||||
// SFINAE for begin and end support.
|
// SFINAE for begin and end support.
|
||||||
template<typename T>
|
template<typename T>
|
||||||
explicit message_t(const T &msg_) : message_t(std::begin(msg_), std::end(msg_))
|
explicit message_t(const T &msg_) : message_t(std::begin(msg_), std::end(msg_))
|
||||||
@ -654,7 +654,8 @@ enum class send_flags : int
|
|||||||
|
|
||||||
constexpr send_flags operator|(send_flags a, send_flags b) noexcept
|
constexpr send_flags operator|(send_flags a, send_flags b) noexcept
|
||||||
{
|
{
|
||||||
return static_cast<send_flags>(static_cast<int>(a) | static_cast<int>(b));
|
return static_cast<send_flags>(static_cast<std::underlying_type<send_flags>::type>(a)
|
||||||
|
| static_cast<<std::underlying_type<send_flags>::type>(b));
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class recv_flags : int
|
enum class recv_flags : int
|
||||||
|
Loading…
Reference in New Issue
Block a user