title: Get zeromq message data into std::vector<char>
body: <p>Given a zeromq message received like so:</p>
  
  <pre><code>zmq_msg_t messageIn;
  int rc = zmq_msg_init(&amp;messageIn);
  rc = zmq_msg_recv(&amp;messageIn, socket, 0);
  </code></pre>
  
  <p>I'd like to access the incoming message data and store it into a;</p>
  
  <pre><code>std::vector&lt;char&gt; inMsg;
  </code></pre>
  
  <p>Trying this;</p>
  
  <pre><code>std::memcpy(&amp;inMsg, zmq_msg_data(&amp;messageIn), zmq_msg_size(&amp;messageIn));
  </code></pre>
  
  <p>Did not work.  Can anyone please offer suggestions on how to achieve this?</p>