mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 10:33:52 +01:00
Problem: deprecation warning in multipart_t
Solution: use non-deprecated operator!= instead
This commit is contained in:
parent
ee1cc9a791
commit
f700e5d6b0
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user