Browse Source

compilation error fix

DESKTOP-SALINGO\Salingo 6 năm trước cách đây
mục cha
commit
4f5ba3ccdb

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

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