From 91b9da6aa66cde23111e109b9f845f1047b4c9af Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Tue, 11 Jun 2024 18:43:49 +0300 Subject: [PATCH] Fixed bug in TextFmt() on windows --- openVulkanoCpp/Scene/UI/ImGuiExtensions/ImGuiTextFmt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openVulkanoCpp/Scene/UI/ImGuiExtensions/ImGuiTextFmt.hpp b/openVulkanoCpp/Scene/UI/ImGuiExtensions/ImGuiTextFmt.hpp index a209ae8..b628ef4 100644 --- a/openVulkanoCpp/Scene/UI/ImGuiExtensions/ImGuiTextFmt.hpp +++ b/openVulkanoCpp/Scene/UI/ImGuiExtensions/ImGuiTextFmt.hpp @@ -22,6 +22,6 @@ namespace ImGui template IMGUI_API void TextFmt(T&& fmt, const Args &... args) { std::string str = fmt::format(std::forward(fmt), args...); - ImGui::TextUnformatted(&*str.begin(), &*str.end()); + ImGui::TextUnformatted(str.data(), str.data() + str.size()); } } \ No newline at end of file