`std::formatter` specialization

Open
#233 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

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<int>(std::basic_format_string<char, std::type_identity<int>::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# 
Dominant language
C++
Stars
497
Forks
86
Avg merge
8d 20h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/stacktrace

All issues in boostorg/stacktrace

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.