compilation for macos
authorAnatoly Baksheev <no@email>
Wed, 1 Jun 2011 15:35:30 +0000 (15:35 +0000)
committerAnatoly Baksheev <no@email>
Wed, 1 Jun 2011 15:35:30 +0000 (15:35 +0000)
samples/gpu/cascadeclassifier.cpp

index 7eff957..80533d1 100644 (file)
@@ -88,16 +88,18 @@ void displayState(Mat &canvas, bool bHelp, bool bGpu, bool bLargestFace, bool bF
     matPrint(canvas, 1, fontColorRed, ss);\r
 \r
     if (bHelp)\r
-    {\r
-        matPrint(canvas, 2, fontColorNV, ostringstream("Space - switch GPU / CPU"));\r
-        matPrint(canvas, 3, fontColorNV, ostringstream("M - switch OneFace / MultiFace"));\r
-        matPrint(canvas, 4, fontColorNV, ostringstream("F - toggle rectangles Filter"));\r
-        matPrint(canvas, 5, fontColorNV, ostringstream("H - toggle hotkeys help"));\r
-        matPrint(canvas, 6, fontColorNV, ostringstream("1/Q - increase/decrease scale"));\r
+    {        \r
+        // by Anatoly. MacOS fix. ostringstream(const string&) is a private\r
+        //matPrint(canvas, 2, fontColorNV, ostringstream("Space - switch GPU / CPU"));\r
+        matPrint(canvas, 2, fontColorNV, (ostringstream&)(ostringstream() << "Space - switch GPU / CPU"));\r
+        matPrint(canvas, 3, fontColorNV, (ostringstream&)(ostringstream() << "M - switch OneFace / MultiFace"));\r
+        matPrint(canvas, 4, fontColorNV, (ostringstream&)(ostringstream() << "F - toggle rectangles Filter"));\r
+        matPrint(canvas, 5, fontColorNV, (ostringstream&)(ostringstream() << "H - toggle hotkeys help"));\r
+        matPrint(canvas, 6, fontColorNV, (ostringstream&)(ostringstream() << "1/Q - increase/decrease scale"));\r
     }\r
     else\r
     {\r
-        matPrint(canvas, 2, fontColorNV, ostringstream("H - toggle hotkeys help"));\r
+        matPrint(canvas, 2, fontColorNV, (ostringstream&)(ostringstream() << "H - toggle hotkeys help"));\r
     }\r
 }\r
 \r