Boost logo

Boost :

Subject: Re: [boost] [stacktrace] review (changing vote to NO)
From: Artyom Beilis (artyom.beilis_at_[hidden])
Date: 2016-12-25 11:32:10


>
>> As long as there is a simple way to throw an exception such that:
>>
>> 1. It is derived from std::exception
>> 2. It contains information about the stack trace
>>
>> It is ok for me.
>
>
> This is the basic way to use Boost.Exception with Stacktrace:
>
> #include <boost/stacktrace.hpp>
> #include <boost/exception/all.hpp>
> #include <stdexcept>
> #include <iostream>
>
> typedef boost::error_info<struct tag_stacktrace,
> boost::stacktrace::stacktrace> stacktrace_info;
>
> template<class E> void throw_with_stacktrace( E const & e )
> {
> throw boost::enable_error_info( e ) << stacktrace_info(
> boost::stacktrace::stacktrace() );
> }
>

Perfect,

Than this should be a part of the stackrace library by default with
examples and so on.

I really like the idea to have such a library in Boost.

But I don't feel it is mature enough, especially the backends
in their current state - and finally the backends are actually the most critical
and hardest stuff to implement _correctly_

Regards,
    Artyom Beilis


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk