From 203d8b2f4021e61dede148a9f0ada0f0b0a02da9 Mon Sep 17 00:00:00 2001 From: BSalita Date: Sun, 1 May 2016 00:14:31 +0200 Subject: Changed type of flags to fix Visual Studio 2015 error (#418) Changed type of flags (line 26) in read_file() from auto to std::ios_base::openmode to fix Visual Studio 2015 error. --- src/support/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/support/file.cpp b/src/support/file.cpp index ef014e59a..59880e862 100644 --- a/src/support/file.cpp +++ b/src/support/file.cpp @@ -23,7 +23,7 @@ template T wasm::read_file(const std::string &filename, Flags::BinaryOption binary, Flags::DebugOption debug) { if (debug == Flags::Debug) std::cerr << "Loading '" << filename << "'..." << std::endl; std::ifstream infile; - auto flags = std::ifstream::in; + std::ios_base::openmode flags = std::ifstream::in; if (binary == Flags::Binary) flags |= std::ifstream::binary; infile.open(filename, flags); if (!infile.is_open()) { -- cgit v1.2.3