summaryrefslogtreecommitdiffstats
path: root/src/MemlessPoly.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-06-18 17:15:01 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-06-18 17:15:01 +0200
commit08705c0399240f984cf54294a369cb3a896e089a (patch)
treea6ab818fa1bb4be11df05e9876f50df5375437a7 /src/MemlessPoly.cpp
parent4399f65e6174da785ebb673fe753f1bc61b57ebf (diff)
downloaddabmod-08705c0399240f984cf54294a369cb3a896e089a.tar.gz
dabmod-08705c0399240f984cf54294a369cb3a896e089a.tar.bz2
dabmod-08705c0399240f984cf54294a369cb3a896e089a.zip
Fix compilation on some older platforms
Diffstat (limited to 'src/MemlessPoly.cpp')
-rw-r--r--src/MemlessPoly.cpp6
1 files changed, 3 insertions, 3 deletions
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) {