ソースを参照

Merge pull request #970 from Salingo/ImGuiTraits_fix

compilation error fix
Jérémie Dumas 6 年 前
コミット
87a59c5fcd
1 ファイル変更6 行追加6 行削除
  1. 6 6
      include/igl/opengl/glfw/imgui/ImGuiTraits.h

+ 6 - 6
include/igl/opengl/glfw/imgui/ImGuiTraits.h

@@ -26,42 +26,42 @@ template<>
 class ImGuiDataTypeTraits<int>
 {
 	static constexpr ImGuiDataType value = ImGuiDataType_S32;
-	static constexpr char * format = "%d";
+	static constexpr char format [] = "%d";
 };
 
 template<>
 class ImGuiDataTypeTraits<unsigned int>
 {
 	static constexpr ImGuiDataType value = ImGuiDataType_U32;
-	static constexpr char * format = "%u";
+	static constexpr char format [] = "%u";
 };
 
 template<>
 class ImGuiDataTypeTraits<long long>
 {
 	static constexpr ImGuiDataType value = ImGuiDataType_S64;
-	static constexpr char * format = "%lld";
+	static constexpr char format [] = "%lld";
 };
 
 template<>
 class ImGuiDataTypeTraits<unsigned long long>
 {
 	static constexpr ImGuiDataType value = ImGuiDataType_U64;
-	static constexpr char * format = "%llu";
+	static constexpr char format [] = "%llu";
 };
 
 template<>
 class ImGuiDataTypeTraits<float>
 {
 	static constexpr ImGuiDataType value = ImGuiDataType_Float;
-	static constexpr char * format = "%.3f";
+	static constexpr char format [] = "%.3f";
 };
 
 template<>
 class ImGuiDataTypeTraits<double>
 {
 	static constexpr ImGuiDataType value = ImGuiDataType_Double;
-	static constexpr char * format = "%.6f";
+	static constexpr char format [] = "%.6f";
 };
 
 } // namespace ImGui