On 05/10/2023 15:13, Jonathan Sweemer via Std-Proposals wrote:
> If there is a generic version of std::to_string then it should produce
> the same result as std::format, no?
Which then also raises the question, is there a concept that doesn't
simply check that a type is formattable, but that it's formattable with
"{}"?
Not in the standard. It could be written:
std::formattable<T, char> and [](std::format_parse_context pc) {
return std::formatter<T>().parse(pc) == pc.end();
}(std::format_parse_context(std::string_view()))