X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..4b0fa756ae6e58a74c374a519389ecb9e8b6a4d9:/include/xbt/backtrace.hpp diff --git a/include/xbt/backtrace.hpp b/include/xbt/backtrace.hpp index 05bf810ba4..4a3a589044 100644 --- a/include/xbt/backtrace.hpp +++ b/include/xbt/backtrace.hpp @@ -8,11 +8,9 @@ #include -#include #include #include #include -#include SG_BEGIN_DECL /** @brief Shows a backtrace of the current location */ @@ -38,15 +36,10 @@ class BacktraceImpl; */ class Backtrace { public: - BacktraceImpl* impl_ = nullptr; + std::shared_ptr 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; };