From 684013697232eccc078db64dcdd81cf2fa1b0c6a Mon Sep 17 00:00:00 2001 From: Jerry James Date: Fri, 5 Feb 2016 14:08:48 -0700 Subject: [PATCH] Be compatible with C++98, C++11, and C++14. This fixes the gcc 6 build and also fixes an existing bug in passing. The code in timer::stream() would set s_ to &cout if the file could not be opened, then immediately overwrite s_ with (unopened) &file_. --- libsrc/newforms.cc | 2 +- libsrc/timer.cc | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/libsrc/newforms.cc b/libsrc/newforms.cc index 400f445e..0d05872b 100644 --- a/libsrc/newforms.cc +++ b/libsrc/newforms.cc @@ -1336,7 +1336,7 @@ void newforms::createfromolddata() ifstream intdatafile(intdataname.str().c_str()); if(!intdatafile.is_open()) { - cout<<"Unable to open data file "<