Fixed bug in TextFmt() on windows

This commit is contained in:
Vladyslav Baranovskyi
2024-06-11 18:43:49 +03:00
parent 91a44eaee0
commit 91b9da6aa6

View File

@@ -22,6 +22,6 @@ namespace ImGui
template <typename T, typename... Args>
IMGUI_API void TextFmt(T&& fmt, const Args &... args) {
std::string str = fmt::format(std::forward<T>(fmt), args...);
ImGui::TextUnformatted(&*str.begin(), &*str.end());
ImGui::TextUnformatted(str.data(), str.data() + str.size());
}
}