|
Boost-Commit : |
From: chris_at_[hidden]
Date: 2008-08-28 08:06:42
Author: chris_kohlhoff
Date: 2008-08-28 08:06:42 EDT (Thu, 28 Aug 2008)
New Revision: 48416
URL: http://svn.boost.org/trac/boost/changeset/48416
Log:
Fix duplicate variable warning. Use get_io_service() rather than
deprecated io_service() function.
Text files modified:
trunk/boost/asio/impl/read_until.ipp | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
Modified: trunk/boost/asio/impl/read_until.ipp
==============================================================================
--- trunk/boost/asio/impl/read_until.ipp (original)
+++ trunk/boost/asio/impl/read_until.ipp 2008-08-28 08:06:42 EDT (Thu, 28 Aug 2008)
@@ -449,7 +449,7 @@
// Found a match. We're done.
boost::system::error_code ec;
std::size_t bytes = iter - begin + 1;
- s.io_service().post(detail::bind_handler(handler, ec, bytes));
+ s.get_io_service().post(detail::bind_handler(handler, ec, bytes));
return;
}
@@ -457,7 +457,7 @@
if (b.size() == b.max_size())
{
boost::system::error_code ec(error::not_found);
- s.io_service().post(detail::bind_handler(handler, ec, 0));
+ s.get_io_service().post(detail::bind_handler(handler, ec, 0));
return;
}
@@ -538,8 +538,8 @@
if (streambuf_.size() == streambuf_.max_size())
{
std::size_t bytes = 0;
- boost::system::error_code ec(error::not_found);
- handler_(ec, bytes);
+ boost::system::error_code ec2(error::not_found);
+ handler_(ec2, bytes);
return;
}
@@ -610,7 +610,7 @@
// Full match. We're done.
boost::system::error_code ec;
std::size_t bytes = result.first - begin + delim.length();
- s.io_service().post(detail::bind_handler(handler, ec, bytes));
+ s.get_io_service().post(detail::bind_handler(handler, ec, bytes));
return;
}
else
@@ -629,7 +629,7 @@
if (b.size() == b.max_size())
{
boost::system::error_code ec(error::not_found);
- s.io_service().post(detail::bind_handler(handler, ec, 0));
+ s.get_io_service().post(detail::bind_handler(handler, ec, 0));
return;
}
@@ -783,7 +783,7 @@
// Full match. We're done.
boost::system::error_code ec;
std::size_t bytes = match_results[0].second - begin;
- s.io_service().post(detail::bind_handler(handler, ec, bytes));
+ s.get_io_service().post(detail::bind_handler(handler, ec, bytes));
return;
}
else
@@ -802,7 +802,7 @@
if (b.size() == b.max_size())
{
boost::system::error_code ec(error::not_found);
- s.io_service().post(detail::bind_handler(handler, ec, 0));
+ s.get_io_service().post(detail::bind_handler(handler, ec, 0));
return;
}
@@ -958,7 +958,7 @@
// Full match. We're done.
boost::system::error_code ec;
std::size_t bytes = result.first - begin;
- s.io_service().post(detail::bind_handler(handler, ec, bytes));
+ s.get_io_service().post(detail::bind_handler(handler, ec, bytes));
return;
}
else
@@ -977,7 +977,7 @@
if (b.size() == b.max_size())
{
boost::system::error_code ec(error::not_found);
- s.io_service().post(detail::bind_handler(handler, ec, 0));
+ s.get_io_service().post(detail::bind_handler(handler, ec, 0));
return;
}
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