bombela / backward-cpp

A beautiful stack trace pretty printer for C++
MIT License
3.81k stars 479 forks source link

Make print_**() methods' ostream argument templated #313

Open leha-bot opened 1 year ago

leha-bot commented 1 year ago

It allows to use some ostream-like objects.

Closes #312.

bombela commented 1 year ago

What is your use case? Just curious, as templates make debugging harder for when you typo something.

leha-bot commented 1 month ago

The main use case is print into any ostream-like object, like QDebug in Qt (for example), or some another loggers which don't derive from std::ostream, e.g., to avoid the locales stuff, etc.