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