Skip to content

Export ostream formatters and streamed() from the module#4861

Merged
vitaut merged 1 commit into
fmtlib:mainfrom
avikivity:export-ostream
Jul 23, 2026
Merged

Export ostream formatters and streamed() from the module#4861
vitaut merged 1 commit into
fmtlib:mainfrom
avikivity:export-ostream

Conversation

@avikivity

Copy link
Copy Markdown
Contributor

Make basic_ostream_formatter, ostream_formatter and streamed() accessible to module users.

@avikivity
avikivity requested a review from vitaut as a code owner July 20, 2026 19:21

@vitaut vitaut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Exporting makes sense but I think we should wrap the whole public API block in FMT_BEGIN_EXPORT / FMT_END_EXPORT instead of doing it one declaration by declaration.

Make basic_ostream_formatter, ostream_formatter and streamed() accessible
to module users via FMT_BEGIN_EXPORT/FMT_BEGIN_EXPORT. Drop now unneeded
FMT_EXPORT for print() and println().
@avikivity

Copy link
Copy Markdown
Contributor Author

v2: use FMT_BEGIN_EXPORT, drop now-unneeded FMT_EXPORT

@vitaut

vitaut commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Lint issue is preexisting - will fix it separately.

@vitaut
vitaut merged commit 6439aa0 into fmtlib:main Jul 23, 2026
45 of 46 checks passed
@vitaut

vitaut commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Merged, thanks!

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.

2 participants