From 698d04a3caa72d9fbb623990e856ba16488443d3 Mon Sep 17 00:00:00 2001 From: Yuji Hirose Date: Thu, 16 Jul 2015 20:21:00 -0400 Subject: [PATCH] Fixed compile error on Raspberry PI. --- lint/playground/httplib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lint/playground/httplib.h b/lint/playground/httplib.h index 69fe6d0..74af63c 100644 --- a/lint/playground/httplib.h +++ b/lint/playground/httplib.h @@ -297,11 +297,11 @@ inline bool is_dir(const std::string& s) inline void read_file(const std::string& path, std::string& out) { - auto fs = std::ifstream(path, std::ios_base::binary); + std::ifstream fs(path, std::ios_base::binary); fs.seekg(0, std::ios_base::end); auto size = fs.tellg(); fs.seekg(0); - out.resize(size); + out.resize(size); fs.read(&out[0], size); }