Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66056 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2010-10-17 17:24:58


Author: chris_kohlhoff
Date: 2010-10-17 17:24:55 EDT (Sun, 17 Oct 2010)
New Revision: 66056
URL: http://svn.boost.org/trac/boost/changeset/66056

Log:
Fix so that read operations do not accept const_buffers_1 arguments. Refs #4746.

Text files modified:
   trunk/boost/asio/detail/buffer_sequence_adapter.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/asio/detail/buffer_sequence_adapter.hpp
==============================================================================
--- trunk/boost/asio/detail/buffer_sequence_adapter.hpp (original)
+++ trunk/boost/asio/detail/buffer_sequence_adapter.hpp 2010-10-17 17:24:55 EDT (Sun, 17 Oct 2010)
@@ -161,7 +161,7 @@
   explicit buffer_sequence_adapter(
       const boost::asio::mutable_buffers_1& buffers)
   {
- init_native_buffer(buffer_, buffers);
+ init_native_buffer(buffer_, Buffer(buffers));
     total_buffer_size_ = boost::asio::buffer_size(buffers);
   }
 
@@ -208,7 +208,7 @@
   explicit buffer_sequence_adapter(
       const boost::asio::const_buffers_1& buffers)
   {
- init_native_buffer(buffer_, buffers);
+ init_native_buffer(buffer_, Buffer(buffers));
     total_buffer_size_ = boost::asio::buffer_size(buffers);
   }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk