Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #183 from Takishipp/leak_memory
[simgrid.git] / include / xbt / exception.hpp
index 4391ffe..ea18bc0 100644 (file)
@@ -40,8 +40,9 @@ typedef std::vector<xbt_backtrace_location_t> Backtrace;
  *
  *  @ingroup XBT_ex
  */
-struct ThrowPoint {
-  ThrowPoint() {}
+class ThrowPoint {
+ public:
+  ThrowPoint() = default;
   ThrowPoint(const char* file, int line, const char* function) :
     file(file), line(line), function(function) {}
   const char* file = nullptr;
@@ -103,9 +104,7 @@ template<class E>
 class WithContext : public E, public WithContextException
 {
 public:
-
-  static_assert(!std::is_base_of<WithContextException,E>::value,
-    "Trying to appli WithContext twice");
+  static_assert(not std::is_base_of<WithContextException, E>::value, "Trying to appli WithContext twice");
 
   WithContext(E exception) :
     E(std::move(exception)) {}