[WIP] Add support for customizable formatting - #933
Conversation
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
Claude generated.
Make the default try the user defined and fall back to the generated one
ea428e7 to
5829013
Compare
|
I suppose one of the biggest questions here is whether we are OK with making The other option is to only have this functionality present in case the compiler has enough |
BEGINRELEASENOTES
{u}specifier.ENDRELEASENOTES
fmt::formatter)?This follows roughly the approach outlined in #920 (comment) and is the final piece of the chain towards customizable collection formatting.