if (timeoutMs >= std::numeric_limits<int>::max())
intTimeoutMs = std::numeric_limits<int>::max();
In this code section, there is an override problem, I use define NOMINMAX, but it does not help to deal with it. I get the following error
error: C2062: type 'unknown-type' unexpected
I used the compilers for MVSC2017, 2019. I used define NO_MIN_MAX and NOMINMAX.
Also took the code in additional brackets
if (timeoutMs >= (std::numeric_limits<int>::max()))
intTimeoutMs = (std::numeric_limits<int>::max());