Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar using C++11 constructs
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 8 Aug 2016 11:57:14 +0000 (13:57 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 8 Aug 2016 11:57:14 +0000 (13:57 +0200)
include/xbt/exception.hpp

index 4391ffe..9be76a2 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;