Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use already existing simgrid::xbt::demangle().
[simgrid.git] / src / mc / DwarfExpression.hpp
index 09160c8..19c5b14 100644 (file)
@@ -56,10 +56,9 @@ public:
 };
 
 /** When an error happens in the execution of a DWARF expression */
-class evaluation_error : std::runtime_error {
+class evaluation_error : public std::runtime_error {
 public:
-  evaluation_error(const char* what): std::runtime_error(what) {}
-  ~evaluation_error() noexcept(true);
+  explicit evaluation_error(const char* what) : std::runtime_error(what) {}
 };
 
 /** A stack for evaluating a DWARF expression