Skip to content

Commit 6350ba1

Browse files
authored
Bug fix
Now my code shall work with g++ 4.8.4, the default GNU C++ compiler of Ubuntu 14.04
1 parent e5d7097 commit 6350ba1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GmshReader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ void GmshReader::read_mesh()
5959
{
6060
line = ReadLine(stream_msh);
6161
node_ident_msh node_msh;
62-
stringstream ss = stringstream(line); // no error with Visual C++ 2015, error with g++
62+
// stringstream ss = stringstream(line); // no error with Visual C++ 2015, error with g++ 4.8.4
63+
stringstream ss(line); // this shall work with g++ 4.8.4
6364
vector <unsigned> line_number;
6465
while (!ss.eof()) {
6566
unsigned number;

0 commit comments

Comments
 (0)