Skip to content

Commit f700e5d

Browse files
committed
Problem: deprecation warning in multipart_t
Solution: use non-deprecated operator!= instead
1 parent ee1cc9a commit f700e5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zmq_addon.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ class multipart_t
408408
if (size() != other->size())
409409
return false;
410410
for (size_t i = 0; i < size(); i++)
411-
if (!peek(i)->equal(other->peek(i)))
411+
if (*peek(i) != *other->peek(i))
412412
return false;
413413
return true;
414414
}
@@ -419,13 +419,13 @@ class multipart_t
419419
void operator=(const multipart_t& other) ZMQ_DELETED_FUNCTION;
420420
}; // class multipart_t
421421

422-
#endif // ZMQ_HAS_RVALUE_REFS
423-
424422
inline std::ostream& operator<<(std::ostream& os, const multipart_t& msg)
425423
{
426424
return os << msg.str();
427425
}
428426

427+
#endif // ZMQ_HAS_RVALUE_REFS
428+
429429
#if defined(ZMQ_BUILD_DRAFT_API) && defined(ZMQ_CPP11) && defined(ZMQ_HAVE_POLLER)
430430
class active_poller_t
431431
{

0 commit comments

Comments
 (0)