Commit 369b3838 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed catching exceptions by reference

Fixes #29
parent 2719f4fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -316,7 +316,7 @@ bool setupBenchmark( const Config::ParameterContainer& parameters )
            return false;
         }
      }
      catch( std::bad_alloc )
      catch( const std::bad_alloc& )
      {
         std::cerr << "Not enough memory to read the matrix." << std::endl;
         logFile << std::endl;
+1 −1
Original line number Diff line number Diff line
@@ -583,7 +583,7 @@ bool processFiles( const Config::ParameterContainer& parameters )
   {
      objectType = getObjectType( inputFiles[ 0 ] );
   }
   catch( std::ios_base::failure exception )
   catch( const std::ios_base::failure& exception )
   {
      std::cerr << "Cannot open file " << inputFiles[ 0 ] << std::endl;
   }