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::io insertion into std::cout works, but std::stringstream does not? #113

Open
janwilmans opened this issue Dec 23, 2022 · 1 comment

Comments

@janwilmans
Copy link

janwilmans commented Dec 23, 2022

https://cppcoach.godbolt.org/z/Mocb7znYf

Only only does it not allow to stream into std::ostream / std::stringstream but also makes it "not play nice with {fmt}".
see fmtlib/fmt#3245

in the meantime, how do I work around this?

@janwilmans
Copy link
Author

janwilmans commented Dec 24, 2022

looking at the source code, I see there are tests for this, but they are @ifdef's out, see https://github.com/boostorg/pfr/blob/develop/test/run/read_write_non_literal.cpp#L64

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

No branches or pull requests

1 participant