From 92da334862df7fc6841689685e44852317e9a8c6 Mon Sep 17 00:00:00 2001 From: Sonu Lohani Date: Sat, 21 Oct 2017 12:52:44 +0530 Subject: [PATCH] Error : 'identifier "size_t" is undefined' in linux --- src/json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.hpp b/src/json.hpp index ade73662..589f0447 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -1544,7 +1544,7 @@ class input_buffer_adapter : public input_adapter_protocol std::string read(std::size_t offset, std::size_t length) override { // avoid reading too many characters - const auto max_length = static_cast(limit - start); + const auto max_length = static_cast(limit - start); return std::string(start + offset, (std::min)(length, max_length - offset)); }