2016-06-18 17:49 GMT+03:00 Edward Diener :
On 6/18/2016 6:34 AM, Antony Polukhin wrote:
Is there interest in it?
What functionality would you like to have in it?
Documentation is always helpful.
Yeep, that's currently missing :(
If in short:
namespace boost { namespace stacktrace {
class stacktrace {
public:
BOOST_STATIC_CONSTEXPR std::size_t max_symbol_width = 256;
typedef boost::array frame_t;
stacktrace() BOOST_NOEXCEPT;
stacktrace(const stacktrace& bt) BOOST_NOEXCEPT;
stacktrace& operator=(const stacktrace& bt) BOOST_NOEXCEPT;
~stacktrace() BOOST_NOEXCEPT;
std::size_t size() const BOOST_NOEXCEPT;
frame_t operator[](std::size_t frame) const BOOST_NOEXCEPT;
};
template
std::basic_ostream&
operator<<(std::basic_ostream& os, const stacktrace&
bt);
}}
So you can construct stacktraces, copy them and output them to streams:
std::cerr << stacktrace();
--
Best regards,
Antony Polukhin