Commit 33df3250 by Niels Lohmann Committed by GitHub

Merge pull request #793 from sonulohani/develop

Error : 'identifier "size_t" is undefined' in linux
parents 2e281ba6 92da3348
...@@ -1544,7 +1544,7 @@ class input_buffer_adapter : public input_adapter_protocol ...@@ -1544,7 +1544,7 @@ class input_buffer_adapter : public input_adapter_protocol
std::string read(std::size_t offset, std::size_t length) override std::string read(std::size_t offset, std::size_t length) override
{ {
// avoid reading too many characters // avoid reading too many characters
const auto max_length = static_cast<size_t>(limit - start); const auto max_length = static_cast<std::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));
} }
......
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