Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Now my code shall work with g++ 4.8.4, the default GNU C++ compiler of Ubuntu 14.04
  • Loading branch information
truong-pham-dang committed Jul 7, 2018
1 parent e5d7097 commit 6350ba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GmshReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ void GmshReader::read_mesh()
{
line = ReadLine(stream_msh);
node_ident_msh node_msh;
stringstream ss = stringstream(line); // no error with Visual C++ 2015, error with g++
// stringstream ss = stringstream(line); // no error with Visual C++ 2015, error with g++ 4.8.4
stringstream ss(line); // this shall work with g++ 4.8.4
vector <unsigned> line_number;
while (!ss.eof()) {
unsigned number;
Expand Down

0 comments on commit 6350ba1

Please sign in to comment.