Remove use of std::min.

This commit is contained in:
Christopher Kohlhoff 2013-09-14 23:35:10 +10:00
parent 7d09b17dab
commit 99077c6e76

View File

@ -74,7 +74,8 @@ win_iocp_io_service::win_iocp_io_service(
ASIO_HANDLER_TRACKING_INIT; ASIO_HANDLER_TRACKING_INIT;
iocp_.handle = ::CreateIoCompletionPort(INVALID_HANDLE_VALUE, 0, 0, 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) if (!iocp_.handle)
{ {
DWORD last_error = ::GetLastError(); DWORD last_error = ::GetLastError();