mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Fix build error on GCC 4.8
by avoiding the copy constructor of std::ifstream
This commit is contained in:
parent
93840787b3
commit
c48084fd1c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user