🏁 fix for #581

This commit is contained in:
Niels Lohmann 2017-05-13 12:27:37 +02:00
parent 978255da8c
commit 9b764ee5d6
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -9005,7 +9005,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: