mirror of
https://github.com/nlohmann/json.git
synced 2025-01-21 17:43:25 +08:00
Add parentheses around std::min so it bypasses the macro introduced by windows.h.
This commit is contained in:
parent
1fbb82de89
commit
04a1666ef2
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user