mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Fixed compile error on Raspberry PI.
This commit is contained in:
parent
923dc4c633
commit
698d04a3ca
@ -297,7 +297,7 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user