From 9174958b43995bd2ee7d3fb3ae95fdbb9e287795 Mon Sep 17 00:00:00 2001 From: omar Date: Fri, 31 Aug 2018 10:50:22 +0200 Subject: [PATCH] imgui_stl: Comments (#2035) --- misc/stl/imgui_stl.cpp | 6 +++++- misc/stl/imgui_stl.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/misc/stl/imgui_stl.cpp b/misc/stl/imgui_stl.cpp index d3d5e35d..014f0c1e 100644 --- a/misc/stl/imgui_stl.cpp +++ b/misc/stl/imgui_stl.cpp @@ -1,7 +1,11 @@ // imgui_stl.cpp -// Wrappers for STL types (std::string, etc.) +// Wrappers for C++ standard library (STL) types (std::string, etc.) // This is also an example of how you may wrap your own similar types. +// Compatibility: +// - std::string support is only guaranteed to work from C++11. +// If you try to use it pre-C++11, please share your findings (w/ info about compiler/architecture) + #include "imgui.h" #include "imgui_stl.h" diff --git a/misc/stl/imgui_stl.h b/misc/stl/imgui_stl.h index 1d7747c7..7837ff6a 100644 --- a/misc/stl/imgui_stl.h +++ b/misc/stl/imgui_stl.h @@ -1,7 +1,11 @@ // imgui_stl.h -// Wrappers for STL types (std::string, etc.) +// Wrappers for C++ standard library (STL) types (std::string, etc.) // This is also an example of how you may wrap your own similar types. +// Compatibility: +// - std::string support is only guaranteed to work from C++11. +// If you try to use it pre-C++11, please share your findings (w/ info about compiler/architecture) + // Changelog: // - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string