Skip to content

Commit

Permalink
Problem: deprecation warning in multipart_t
Browse files Browse the repository at this point in the history
Solution: use non-deprecated operator!= instead
  • Loading branch information
sigiesec committed May 11, 2018
1 parent ee1cc9a commit f700e5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zmq_addon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ class multipart_t
if (size() != other->size())
return false;
for (size_t i = 0; i < size(); i++)
if (!peek(i)->equal(other->peek(i)))
if (*peek(i) != *other->peek(i))
return false;
return true;
}
Expand All @@ -419,13 +419,13 @@ class multipart_t
void operator=(const multipart_t& other) ZMQ_DELETED_FUNCTION;
}; // class multipart_t

#endif // ZMQ_HAS_RVALUE_REFS

inline std::ostream& operator<<(std::ostream& os, const multipart_t& msg)
{
return os << msg.str();
}

#endif // ZMQ_HAS_RVALUE_REFS

#if defined(ZMQ_BUILD_DRAFT_API) && defined(ZMQ_CPP11) && defined(ZMQ_HAVE_POLLER)
class active_poller_t
{
Expand Down

0 comments on commit f700e5d

Please sign in to comment.