boostorg / boostorg/stacktrace

`std::formatter` specialization

Open
#233 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
494
Forks
86
Avg merge
8d 20h
Merged PRs (30d)
3

Description

Please provide a `std::formatter` specialization similar to the one `std::stacktrace` provides:

https://godbolt.org/z/x3zKn6vfn

```
terminate called after throwing an instance of 'RuntimeError'
what(): Encountered error code: 139
0# RuntimeError::RuntimeError(std::basic_format_string::type>, int&&) at /app/example.cpp:16
1# h() at /app/example.cpp:23
2# g() at /app/example.cpp:28
3# f() at /app/example.cpp:33
4# main at /app/example.cpp:38
5# at :0
6# __libc_start_main at :0
7# _start at :0
8#
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked Compiler Explorer example and compare its current output with the formatting behavior provided by std::stacktrace. Trace the library's existing stacktrace formatting entry points, then verify that a std::formatter specialization produces equivalent formatted output for the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.