mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-06 08:41:15 +01:00
Merge pull request #66 from K0n63n/master
This commit is contained in:
commit
c86eb9ed4d
7
zmq.hpp
7
zmq.hpp
@ -219,7 +219,12 @@ namespace zmq
|
|||||||
int const rc = zmq_msg_init_size (&msg, size_);
|
int const rc = zmq_msg_init_size (&msg, size_);
|
||||||
if (rc != 0)
|
if (rc != 0)
|
||||||
throw error_t ();
|
throw error_t ();
|
||||||
std::copy(first, last, static_cast<value_t*>(zmq_msg_data (&msg)) );
|
value_t* dest = data<value_t>();
|
||||||
|
while (first != last)
|
||||||
|
{
|
||||||
|
*dest = *first;
|
||||||
|
++dest; ++first;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline message_t (void *data_, size_t size_, free_fn *ffn_,
|
inline message_t (void *data_, size_t size_, free_fn *ffn_,
|
||||||
|
Loading…
Reference in New Issue
Block a user