|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66007 - in trunk/boost/asio: . detail
From: chris_at_[hidden]
Date: 2010-10-16 03:24:50
Author: chris_kohlhoff
Date: 2010-10-16 03:24:47 EDT (Sat, 16 Oct 2010)
New Revision: 66007
URL: http://svn.boost.org/trac/boost/changeset/66007
Log:
Don't use deprecated system functions. Refs #4672.
Text files modified:
trunk/boost/asio/detail/config.hpp | 1 +
trunk/boost/asio/error.hpp | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
Modified: trunk/boost/asio/detail/config.hpp
==============================================================================
--- trunk/boost/asio/detail/config.hpp (original)
+++ trunk/boost/asio/detail/config.hpp 2010-10-16 03:24:47 EDT (Sat, 16 Oct 2010)
@@ -12,6 +12,7 @@
#define BOOST_ASIO_DETAIL_CONFIG_HPP
#include <boost/config.hpp>
+#include <boost/version.hpp>
// Default to a header-only implementation. The user must specifically request
// separate compilation by defining either BOOST_ASIO_SEPARATE_COMPILATION or
Modified: trunk/boost/asio/error.hpp
==============================================================================
--- trunk/boost/asio/error.hpp (original)
+++ trunk/boost/asio/error.hpp 2010-10-16 03:24:47 EDT (Sat, 16 Oct 2010)
@@ -217,7 +217,11 @@
inline const boost::system::error_category& get_system_category()
{
+#if (BOOST_VERSION < 104400)
return boost::system::get_system_category();
+#else
+ return boost::system::system_category();
+#endif
}
#if !defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
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