Skip to content

Commit 99077c6

Browse files
committed
Remove use of std::min.
1 parent 7d09b17 commit 99077c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asio/include/asio/detail/impl/win_iocp_io_service.ipp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ win_iocp_io_service::win_iocp_io_service(
7474
ASIO_HANDLER_TRACKING_INIT;
7575

7676
iocp_.handle = ::CreateIoCompletionPort(INVALID_HANDLE_VALUE, 0, 0,
77-
static_cast<DWORD>((std::min<size_t>)(concurrency_hint, DWORD(~0))));
77+
static_cast<DWORD>(concurrency_hint < DWORD(~0)
78+
? concurrency_hint : DWORD(~0)));
7879
if (!iocp_.handle)
7980
{
8081
DWORD last_error = ::GetLastError();

0 commit comments

Comments
 (0)