* Formatter for `boost::stacktrace::stacktrace` objects * * This class wraps `boost::stacktrace::stacktrace` objects and provides an operator<< * for printing them to an `std::ostream` in a custom format. */
| 16 | * for printing them to an `std::ostream` in a custom format. |
| 17 | */ |
| 18 | class StackTraceFormatter { |
| 19 | public: |
| 20 | StackTraceFormatter(const boost::stacktrace::stacktrace &stack) : m_Stack(stack) {} |
| 21 | |
| 22 | private: |
| 23 | const boost::stacktrace::stacktrace &m_Stack; |
| 24 | |
| 25 | friend std::ostream &operator<<(std::ostream &os, const StackTraceFormatter &f); |
| 26 | }; |
| 27 | |
| 28 | std::ostream& operator<<(std::ostream& os, const StackTraceFormatter &f); |
| 29 |
no outgoing calls
no test coverage detected