mirror of
https://github.com/nlohmann/json.git
synced 2026-03-12 12:11:25 +00:00
Add parentheses around std::min so it bypasses the macro introduced by windows.h.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user