Commit 04a1666e by 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 ...@@ -8987,7 +8987,7 @@ class basic_json
{ {
// avoid reading too many characters // avoid reading too many characters
const size_t max_length = static_cast<size_t>(limit - start); 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: 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