summarylogtreecommitdiffstats
path: root/contrib-fix-std.patch
blob: e62b075f2e89947b281c908bf70f55f030a788a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
diff --git a/modules/viz/src/vtk/vtkVizInteractorStyle.cpp b/modules/viz/src/vtk/vtkVizInteractorStyle.cpp
index e2d33806..1fa823d0 100644
--- a/modules/viz/src/vtk/vtkVizInteractorStyle.cpp
+++ b/modules/viz/src/vtk/vtkVizInteractorStyle.cpp
@@ -43,6 +43,7 @@
 //
 //M*/

+#include <iostream>
 #include "../precomp.hpp"

 namespace cv { namespace viz
@@ -96,7 +97,7 @@ void cv::viz::vtkVizInteractorStyle::saveScreenshot(const String &file)
     snapshot_writer->SetFileName(file.c_str());
     snapshot_writer->Write();

-    cout << "Screenshot successfully captured (" << file.c_str() << ")" << endl;
+    std::cout << "Screenshot successfully captured (" << file.c_str() << ")" << endl;
 }

 //////////////////////////////////////////////////////////////////////////////////////////////
@@ -118,7 +119,7 @@ void cv::viz::vtkVizInteractorStyle::exportScene(const String &file)
     exporter->SetInput(Interactor->GetRenderWindow());
     exporter->Write();

-    cout << "Scene successfully exported (" << file.c_str() << ")" << endl;
+    std::cout << "Scene successfully exported (" << file.c_str() << ")" << endl;
 }

 void cv::viz::vtkVizInteractorStyle::exportScene()
diff --git a/modules/viz/src/widget.cpp b/modules/viz/src/widget.cpp
index b46d3d1c..f483f42e 100644
--- a/modules/viz/src/widget.cpp
+++ b/modules/viz/src/widget.cpp
@@ -43,6 +43,7 @@
 //
 //M*/

+#include <iostream>
 #include "precomp.hpp"

 ///////////////////////////////////////////////////////////////////////////////////////////////