Update of /cvsroot/boost/boost/libs/asio/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21211/libs/asio/test
Modified Files:
error.cpp read.cpp write.cpp
Log Message:
Remove the error::success constant since with the new error_code stuff
there is no unique value for success.
Index: error.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/test/error.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- error.cpp 9 Nov 2006 03:02:16 -0000 1.3
+++ error.cpp 17 Nov 2006 11:28:18 -0000 1.4
@@ -77,7 +77,6 @@
test_error_code(boost::asio::error::operation_aborted);
test_error_code(boost::asio::error::service_not_found);
test_error_code(boost::asio::error::shut_down);
- test_error_code(boost::asio::error::success);
test_error_code(boost::asio::error::timed_out);
test_error_code(boost::asio::error::try_again);
test_error_code(boost::asio::error::would_block);
Index: read.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/test/read.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- read.cpp 9 Nov 2006 03:02:16 -0000 1.3
+++ read.cpp 17 Nov 2006 11:28:18 -0000 1.4
@@ -109,7 +109,7 @@
size_t read_some(const Mutable_Buffers& buffers,
boost::system::error_code& ec)
{
- ec = boost::asio::error::success;
+ ec = boost::system::error_code();
return read_some(buffers);
}
@@ -118,7 +118,7 @@
{
size_t bytes_transferred = read_some(buffers);
io_service_.post(boost::asio::detail::bind_handler(
- handler, boost::asio::error::success, bytes_transferred));
+ handler, boost::system::error_code(), bytes_transferred));
}
private:
Index: write.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/test/write.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- write.cpp 9 Nov 2006 03:02:16 -0000 1.3
+++ write.cpp 17 Nov 2006 11:28:18 -0000 1.4
@@ -110,7 +110,7 @@
template <typename Const_Buffers>
size_t write_some(const Const_Buffers& buffers, boost::system::error_code&
ec)
{
- ec = boost::asio::error::success;
+ ec = boost::system::error_code();
return write_some(buffers);
}
@@ -119,7 +119,7 @@
{
size_t bytes_transferred = write_some(buffers);
io_service_.post(boost::asio::detail::bind_handler(
- handler, boost::asio::error::success, bytes_transferred));
+ handler, boost::system::error_code(), bytes_transferred));
}
private:
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs