From c48084fd1c57a8433fa11f869465401800840e42 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 25 Jan 2018 11:29:24 +0100 Subject: [PATCH] Fix build error on GCC 4.8 by avoiding the copy constructor of std::ifstream --- libsrc/interface/nginterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/interface/nginterface.cpp b/libsrc/interface/nginterface.cpp index edce3398..b894059a 100644 --- a/libsrc/interface/nginterface.cpp +++ b/libsrc/interface/nginterface.cpp @@ -119,7 +119,7 @@ void Ng_LoadMeshFromStream ( istream & input ) void Ng_LoadMesh (const char * filename) { { - auto infile = ifstream (filename); + ifstream infile(filename); if(!infile.good()) throw NgException(string("Error opening file ") + filename); }