Skip to content

[WIP] Add support for customizable formatting#933

Open
tmadlener wants to merge 23 commits intoAIDASoft:masterfrom
tmadlener:customizable-formatting
Open

[WIP] Add support for customizable formatting#933
tmadlener wants to merge 23 commits intoAIDASoft:masterfrom
tmadlener:customizable-formatting

Conversation

@tmadlener
Copy link
Collaborator

BEGINRELEASENOTES

  • Make it possible to specify a user defined formatting via the {u} specifier.

ENDRELEASENOTES

This follows roughly the approach outlined in #920 (comment) and is the final piece of the chain towards customizable collection formatting.

As a first step using the ostream_formatter adaptor to re-use the
existing operator<<.
Implement the existing operator<< in terms of format_to
Necessary to ensure that things still compile if fmt/ranges.h is
included to avoid ambiguities that would otherwise arise because LinkT
behaves tuple-like enough to trigger tuple formatting. Collections are
ranges so we have to explicitly opt-out.
Also get rid of some hideous string concatenation while we are at it
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.

1 participant