From c4450a78826662cc07efd2597421745523d3d5ee Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Thu, 9 Feb 2017 14:52:43 +0100
Subject: [PATCH] Start working on alignment integration tests. Improve C++14
 compatibility

---
 DDG4/ddsim.cpp | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/DDG4/ddsim.cpp b/DDG4/ddsim.cpp
index facfb8ee7..726d1120e 100644
--- a/DDG4/ddsim.cpp
+++ b/DDG4/ddsim.cpp
@@ -5,8 +5,9 @@
 //====================================================================
 
 #include "DDG4/Geant4Config.h"
+#include <cerrno>
 #include <iostream>
-
+#include <stdexcept>
 
 using namespace DD4hep::Simulation::Setup;
 
@@ -44,6 +45,7 @@ int main_wrapper(int argc, char** argv)  {
 
   std::cout << "Successfully executed application .... " << std::endl;
   kernel.terminate();
+  return 0;
 }
 
 //______________________________________________________________________________
@@ -51,11 +53,11 @@ int main(int argc, char** argv)  {
   try {
     return main_wrapper(argc,argv);
   }
-  catch(const exception& e)  {
-    cout << "Got uncaught exception: " << e.what() << endl;
+  catch(const std::exception& e)  {
+    std::cout << "Got uncaught exception: " << e.what() << std::endl;
   }
   catch (...)  {
-    cout << "Got UNKNOWN uncaught exception." << endl;
+    std::cout << "Got UNKNOWN uncaught exception." << std::endl;
   }
   return EINVAL;    
 }
-- 
GitLab