These are chat archives for fmtlib/fmt

21st
Nov 2018
Victor Zverovich
@vitaut
Nov 21 2018 17:56
Not sure I understand your suggestion about intermediary class for non-common conversions. std::string is different from std::vector because the former have an well-established output format while the latter doesn't. There are some facilities to format containers in fmt/ranges.h though.
Matthias Moulin
@matt77hias
Nov 21 2018 19:05
But std::string does not have a well-established output form for an UTF16 output iterator, and a std::wstring does not have a well-established output form for an UTF8 output iterator. So I do not see the differences with an arbitrary user-defined type Widget (e.g., container).
With non-common, I just refer to the same thing you proposed above (i.e. utf8): format("{}", NonCommonType(L"...")) + formatter specialization for NonCommonType.