From 08705c0399240f984cf54294a369cb3a896e089a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 18 Jun 2018 17:15:01 +0200 Subject: Fix compilation on some older platforms --- src/MemlessPoly.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/MemlessPoly.cpp b/src/MemlessPoly.cpp index 67a2cb8..c017fab 100644 --- a/src/MemlessPoly.cpp +++ b/src/MemlessPoly.cpp @@ -95,7 +95,7 @@ MemlessPoly::MemlessPoly(const std::string& coefs_file, unsigned int num_threads } } - auto coefs_fstream = fstream(m_coefs_file); + ifstream coefs_fstream(m_coefs_file); load_coefficients(coefs_fstream); start_pipeline_thread(); @@ -416,7 +416,7 @@ void MemlessPoly::set_parameter(const string& parameter, const string& value) } else if (parameter == "coeffile") { try { - auto coefs_fstream = fstream(value); + ifstream coefs_fstream(value); load_coefficients(coefs_fstream); m_coefs_file = value; } @@ -431,7 +431,7 @@ void MemlessPoly::set_parameter(const string& parameter, const string& value) // Write back to the file to ensure we will start up // with the same settings next time - auto coefs_fstream = ofstream(m_coefs_file); + ofstream coefs_fstream(m_coefs_file); coefs_fstream << value; } catch (std::runtime_error &e) { -- cgit v1.2.3