mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-10-23 00:08:02 +02:00
Problem: Missing swap functions
Solution: Implement for socket_t, context_t, message_t and poller_t Additionally remove dependency on <functional> by refactoring poller_t and remove unused <unordered_map> include.
This commit is contained in:
@@ -30,6 +30,10 @@
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
#ifdef ZMQ_CPP11
|
||||
#include <functional>
|
||||
#include <unordered_map>
|
||||
#endif
|
||||
|
||||
namespace zmq
|
||||
{
|
||||
@@ -245,7 +249,7 @@ class multipart_t
|
||||
m_parts.pop_back();
|
||||
return message;
|
||||
}
|
||||
|
||||
|
||||
// get message part from front
|
||||
const message_t &front()
|
||||
{
|
||||
|
Reference in New Issue
Block a user