Boost logo

Boost :

Subject: Re: [boost] [stacktrace] review
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2017-03-10 04:30:01


Minor example fixes for the previous mail:

This is a part of the Boost.DLL library. In boost_1_64 it will have a
`boost::dll::symbol_location_ptr` so you can write the following code:

stacktrace st; // no symbol names extraction, only storing frame addresses
frame f = st[0]; // copying a pointer under the hood
std::cout << symbol_location_ptr(f.address()); // outputs `some/path/test.exe`
std::cout << f; // outputs `foo() at source/path/foo.cpp:42`. Only at
// this line function name and source location are retrieved.

-- 
Best regards,
Antony Polukhin

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