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

boost::pfr doesn't play nice with {fmt} ? #3245

Closed
janwilmans opened this issue Dec 23, 2022 · 2 comments
Closed

boost::pfr doesn't play nice with {fmt} ? #3245

janwilmans opened this issue Dec 23, 2022 · 2 comments
Labels

Comments

@janwilmans
Copy link

janwilmans commented Dec 23, 2022

https://cppcoach.godbolt.org/z/6bahdcedd

I'm not sure it is something {fmt} can fix/handle, but pfr objects can be streamed into std::cerr, but not into fmt::format/fmt::print. If someone can shed light what the actual issue is, I will be happy to report it elsewhere if needed.

@vitaut
Copy link
Contributor

vitaut commented Dec 23, 2022

Considering that ostream insertion doesn't work with boost::pfr::io in a function template (to_string) this doesn't look like an issue in {fmt}. Please report to Boost.

@janwilmans
Copy link
Author

thanks for confirming that, I will report it accordingly.

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

No branches or pull requests

2 participants