microsoft / cppwinrt

C++/WinRT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

std::vformat equivalent for hstring

JaiganeshKumaran opened this issue · comments

There only seems to be winrt::format; no winrt::vformat to specify a runtime format string.

This is not possible because std::vformatted_size and std::vformat_to_n do not exist.

We would need a dynamically increasing temporary buffer, at which point that would be equivalent to just using std::vformat and converting to winrt::hstring after.

This will be fixed in the future with std::runtime_format