Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leha-bot
Copy link

It allows to use some ostream-like objects.

Closes #312.

It allows to use some ostream-like objects.
@bombela
Copy link
Owner

bombela commented Nov 23, 2023

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

@leha-bot
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make print_***() ostream arguments templated
2 participants