From 99077c6e7676f4f8c9e49ce22392c2d5424d9cd2 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Sat, 14 Sep 2013 23:35:10 +1000 Subject: [PATCH] Remove use of std::min. --- asio/include/asio/detail/impl/win_iocp_io_service.ipp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asio/include/asio/detail/impl/win_iocp_io_service.ipp b/asio/include/asio/detail/impl/win_iocp_io_service.ipp index 0a2774f3..ebe0a887 100644 --- a/asio/include/asio/detail/impl/win_iocp_io_service.ipp +++ b/asio/include/asio/detail/impl/win_iocp_io_service.ipp @@ -74,7 +74,8 @@ win_iocp_io_service::win_iocp_io_service( ASIO_HANDLER_TRACKING_INIT; iocp_.handle = ::CreateIoCompletionPort(INVALID_HANDLE_VALUE, 0, 0, - static_cast((std::min)(concurrency_hint, DWORD(~0)))); + static_cast(concurrency_hint < DWORD(~0) + ? concurrency_hint : DWORD(~0))); if (!iocp_.handle) { DWORD last_error = ::GetLastError();