From 80e2153f61c596fdbdd3f2142e12f9107dce5052 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 29 Sep 2017 22:39:56 +0200 Subject: [PATCH] Revert "Derive custom exception from std::exception." This reverts commit 7198a3162eaae82fa2ec5c612d5ae22e243055d7. Make it impossible for user code to catch a StopRequest with a try {} catch (std::exception). Sonar will be whining but I don't care. --- src/kernel/context/Context.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index 090e7f4876..89b3833e82 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -6,7 +6,6 @@ #ifndef SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP #define SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP -#include #include #include #include @@ -81,7 +80,7 @@ namespace context { void_pfn_smxprocess_t cleanup_func_ = nullptr; smx_actor_t process_ = nullptr; public: - class StopRequest : public std::exception { + class StopRequest { }; bool iwannadie; -- 2.20.1