|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85758 - trunk/boost/asio/detail/impl
From: chris_at_[hidden]
Date: 2013-09-17 18:05:39
Author: chris_kohlhoff
Date: 2013-09-17 18:05:38 EDT (Tue, 17 Sep 2013)
New Revision: 85758
URL: http://svn.boost.org/trac/boost/changeset/85758
Log:
Remove use of std::min.
Text files modified:
trunk/boost/asio/detail/impl/win_iocp_io_service.ipp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/asio/detail/impl/win_iocp_io_service.ipp
==============================================================================
--- trunk/boost/asio/detail/impl/win_iocp_io_service.ipp Tue Sep 17 18:04:55 2013 (r85757)
+++ trunk/boost/asio/detail/impl/win_iocp_io_service.ipp 2013-09-17 18:05:38 EDT (Tue, 17 Sep 2013) (r85758)
@@ -75,7 +75,8 @@
BOOST_ASIO_HANDLER_TRACKING_INIT;
iocp_.handle = ::CreateIoCompletionPort(INVALID_HANDLE_VALUE, 0, 0,
- static_cast<DWORD>((std::min<size_t>)(concurrency_hint, DWORD(~0))));
+ static_cast<DWORD>(concurrency_hint < DWORD(~0)
+ ? concurrency_hint : DWORD(~0)));
if (!iocp_.handle)
{
DWORD last_error = ::GetLastError();
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