Browse Source

imgui_stl: Comments (#2035)

omar 7 years ago
parent
commit
9174958b43
2 changed files with 10 additions and 2 deletions
  1. 5 1
      misc/stl/imgui_stl.cpp
  2. 5 1
      misc/stl/imgui_stl.h

+ 5 - 1
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"
 

+ 5 - 1
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