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