From 0fde3d1f474cbe1a943cf81c241695a98ee5366b Mon Sep 17 00:00:00 2001
From: Christoph Rettinger <christoph.rettinger@fau.de>
Date: Wed, 20 Mar 2019 14:30:42 +0100
Subject: [PATCH] Removed boost exception

---
 src/core/mpi/MPIManager.cpp          | 5 ++---
 src/python_coupling/CreateConfig.cpp | 1 -
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/core/mpi/MPIManager.cpp b/src/core/mpi/MPIManager.cpp
index fe89748d4..f8944ab78 100644
--- a/src/core/mpi/MPIManager.cpp
+++ b/src/core/mpi/MPIManager.cpp
@@ -24,7 +24,6 @@
 #include "MPIManager.h"
 #include "core/logging/Logging.h"
 
-#include <boost/exception_ptr.hpp>
 #include <exception>
 #include <iostream>
 #include <stdexcept>
@@ -57,8 +56,8 @@ static void customTerminateHandler()
    // i.e. in cases when this hack does not work, we just cannot print the message
    // otherwise we re-throw the exception to get the type, and print exception.what()
    try {
-      if(boost::current_exception() )
-         boost::rethrow_exception(boost::current_exception());
+      if(std::current_exception() )
+         std::rethrow_exception(std::current_exception());
    } catch (std::exception const & exc) {
       std::cerr << exc.what() << std::endl;
    }
diff --git a/src/python_coupling/CreateConfig.cpp b/src/python_coupling/CreateConfig.cpp
index 2e1ed583d..61054f4f1 100644
--- a/src/python_coupling/CreateConfig.cpp
+++ b/src/python_coupling/CreateConfig.cpp
@@ -27,7 +27,6 @@
 #include "core/logging/Logging.h"
 
 #include <boost/algorithm/string.hpp>
-#include <boost/exception/all.hpp>
 #include <exception>
 
 
-- 
GitLab