We're switching to the fmt library and aim to rewrite many wide character output stream based formattings.
I found fmt::output_file which returns a class ostream : private detail::buffer<char> instance but it looks like there's no support for wchar_t.
What's the canonical way to use the format library in wide character output stream scenarios?
The only way i can think of is to manually open a std::wofstream and use fmt::format.
Is this on a roadmap or am i missing something?
fmt/ostream.hprovides anfmt::printoverload that can write towofstream:godbolt
That said, I would recommend avoiding
wchar_tif you care about portability and performance.