Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simplify xbt:Backtrace.
[simgrid.git] / include / xbt / backtrace.hpp
index 05bf810..d20fab8 100644 (file)
@@ -38,15 +38,10 @@ class BacktraceImpl;
  */
 class Backtrace {
 public:
-  BacktraceImpl* impl_ = nullptr;
+  std::shared_ptr<BacktraceImpl> impl_;
   Backtrace();
-  Backtrace(const Backtrace& bt);
-  Backtrace(Backtrace&& bt);
-  Backtrace& operator=(const Backtrace& rhs);
-  Backtrace& operator=(Backtrace&& rhs);
-  ~Backtrace();
   /** @brief Translate the backtrace in a human friendly form, unmangled with source code locations. */
-  std::string const resolve() const;
+  std::string resolve() const;
   /** @brief Display the resolved backtrace on stderr */
   void display() const;
 };