SHA256
1
0
forked from pool/paraview
paraview/paraview-include-sstream.patch

28 lines
845 B
Diff
Raw Normal View History

From eb8de75499a23e6e5d4214ec170ad53d510206f7 Mon Sep 17 00:00:00 2001
From: Elvis Stansvik <elvstone@gmail.com>
Date: Mon, 1 Nov 2021 22:22:29 +0100
Subject: [PATCH] Add missing inclusion of sstream/string headers
Needed for std::ostringstream and std::string.
---
IO/Geometry/vtkGLTFWriterUtils.cxx | 3 +++
1 file changed, 3 insertions(+)
diff --git a/VTK/IO/Geometry/vtkGLTFWriterUtils.cxx b/VTK/IO/Geometry/vtkGLTFWriterUtils.cxx
index a7df4975e07..fdaaead3150 100644
--- a/VTK/IO/Geometry/vtkGLTFWriterUtils.cxx
+++ b/VTK/IO/Geometry/vtkGLTFWriterUtils.cxx
@@ -25,6 +25,9 @@
#include "vtksys/FStream.hxx"
#include "vtksys/SystemTools.hxx"
+#include <sstream>
+#include <string>
+
void vtkGLTFWriterUtils::WriteValues(vtkDataArray* ca, ostream& myFile)
{
myFile.write(reinterpret_cast<char*>(ca->GetVoidPointer(0)),
--
GitLab