+public:
+ std::string resolve() const
+ {
+ std::stringstream ss;
+ ss << st;
+ return ss.str();
+ }
+};
+
+Backtrace::Backtrace() : impl_(std::make_shared<BacktraceImpl>()) {}
+
+std::string Backtrace::resolve() const
+{
+ return impl_->resolve();
+}
+
+void Backtrace::display() const
+{
+ std::string backtrace = resolve();
+ std::fprintf(stderr, "Backtrace (displayed in actor %s):\n%s\n", xbt_procname(),
+ backtrace.empty() ? "(backtrace not set -- did you install Boost.Stacktrace?)" : backtrace.c_str());
+}
+
+} // namespace xbt
+} // namespace simgrid