From d27a3e79ed371d869297d2653df0c9d5cf75170e Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 3 Mar 2016 16:16:30 +0000
Subject: [PATCH] Make it compile again

Add missing include and throw() statements for exceptions d'tors
---
 DDCore/include/DD4hep/Primitives.h | 3 ++-
 DDCore/src/Primitives.cpp          | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/DDCore/include/DD4hep/Primitives.h b/DDCore/include/DD4hep/Primitives.h
index 2d3213b81..ab58d895c 100644
--- a/DDCore/include/DD4hep/Primitives.h
+++ b/DDCore/include/DD4hep/Primitives.h
@@ -20,6 +20,7 @@
 // C/C++ include files
 #include <limits>
 #include <algorithm>
+#include <stdexcept>
 
 /// Namespace for the AIDA detector description toolkit
 namespace DD4hep {
@@ -57,7 +58,7 @@ namespace DD4hep {
     /// Generic copy constructor
     invalid_handle_exception(const std::exception& e) : std::runtime_error(e.what()) {}
     /// Default destructor of specialized exception
-    virtual ~invalid_handle_exception();
+    virtual ~invalid_handle_exception() throw();
   };
 
   /// ABI information about type names
diff --git a/DDCore/src/Primitives.cpp b/DDCore/src/Primitives.cpp
index 6ce9be8ed..62e7614c4 100644
--- a/DDCore/src/Primitives.cpp
+++ b/DDCore/src/Primitives.cpp
@@ -153,7 +153,7 @@ std::string DD4hep::typeName(const std::type_info& typ) {
 }
 
 /// Default destructor of specialized exception
-DD4hep::invalid_handle_exception::~invalid_handle_exception()  {
+DD4hep::invalid_handle_exception::~invalid_handle_exception() throw() {
 }
 
 void DD4hep::invalidHandleError(const std::type_info& type)
-- 
GitLab