boostorg / boostorg/pfr

boost:pfr::io insertion into std::cout works, but std::stringstream does not?

Open
#113 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.5k
Forks
176
Avg merge
5d 21h
Merged PRs (30d)
1

Description

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 https://github.com/fmtlib/fmt/issues/3245

in the meantime, how do I work around this?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked Compiler Explorer reproduction and compare insertion into std::cout with std::ostream and std::stringstream. Review the related fmt issue to understand the reported incompatibility, then identify the expected streaming behavior and document a confirmed workaround or precise fix scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.