Skip to content

Commit

Permalink
Problem: send_multipart fails on old gcc versions
Browse files Browse the repository at this point in the history
Solution: remove template type checks if there is only partial C++11 support
  • Loading branch information
gummif committed Mar 7, 2020
1 parent 5999e5a commit 5ecbf86
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions zmq_addon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,14 @@ ZMQ_NODISCARD recv_result_t recv_multipart_n(socket_ref s,
by the msgs range will be propagated and the message
may have been only partially sent. It is adviced to close this socket in that event.
*/
template<class Range,
typename = typename std::enable_if<
template<class Range
#ifndef ZMQ_CPP11_PARTIAL
, typename = typename std::enable_if<
detail::is_range<Range>::value
&& (std::is_same<detail::range_value_t<Range>, message_t>::value
|| detail::is_buffer<detail::range_value_t<Range>>::value)>::type>
|| detail::is_buffer<detail::range_value_t<Range>>::value)>::type
#endif
>
send_result_t
send_multipart(socket_ref s, Range &&msgs, send_flags flags = send_flags::none)
{
Expand Down

0 comments on commit 5ecbf86

Please sign in to comment.