Commit 04a1666e authored by Steffen Brem's avatar Steffen Brem

Add parentheses around std::min so it bypasses the macro introduced by windows.h.

parent 1fbb82de
......@@ -8987,7 +8987,7 @@ class basic_json
{
// avoid reading too many characters
const size_t max_length = static_cast<size_t>(limit - start);
return std::string(start + offset, std::min(length, max_length - offset));
return std::string(start + offset, (std::min)(length, max_length - offset));
}
private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment