title: How to use boost async_write with a vector of boost const_buffers correctly?
body: <p>I am having trouble to make this line here right:</p>
  
  <pre><code>boost::asio::async_write(serialPort, 
                           boost::asio::buffer(
                           boost::asio::buffer_cast&lt;const void*&gt;(vector_.front()),
                           boost::asio::buffer_size(vector_.front())))
  </code></pre>
  
  <p><code>vector_</code> holds a number of <code>boost::asio::const_buffers</code></p>
  
  <pre><code>std::vector&lt;boost::asio::const_buffer&gt; vector_;
  </code></pre>
  
  <p>This stuff works, but I am quite sure that there is a way more elegant way to do this, and if not, I would like to here that from someone with a bit more experience.</p>
  
  <p>So, can this solution be improved? If so, how?</p>