Problem: deprecation warning in multipart_t

Solution: use non-deprecated operator!= instead
This commit is contained in:
Simon Giesecke 2018-05-11 11:18:21 +02:00
parent ee1cc9a791
commit f700e5d6b0

View File

@ -408,7 +408,7 @@ public:
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;
}
@ -419,13 +419,13 @@ private:
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
{