Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
Description
SunStudio 12.1 can not figure out template parameters. So we have to provide them manually. See patch below:
diff -ur qt-everywhere-opensource-src-4.7.0-tp.orig/examples/qtconcurrent/map/main.cpp qt-everywhere-opensource-src-4.7.0-tp/examples/qtconcurrent/map/main.cpp
— qt-everywhere-opensource-src-4.7.0-tp.orig/examples/qtconcurrent/map/main.cpp 2010-03-10 08:54:58.000000000 -0500
+++ qt-everywhere-opensource-src-4.7.0-tp/examples/qtconcurrent/map/main.cpp 2010-03-13 10:38:13.372209659 -0500
@@ -67,7 +67,8 @@
// Use QtConcurrentBlocking::mapped to apply the scale function to all the
// images in the list.
- QList<QImage> thumbnails = QtConcurrent::blockingMapped(images, scale);
+ QList<QImage> thumbnails =
+ QtConcurrent::blockingMapped<QList<QImage> >(images, scale);
return 0;
}