Threadweaver compilation failure: Windows

Kevin Funk kfunk at kde.org
Tue Apr 18 06:53:59 UTC 2017


On Monday, 17 April 2017 22:43:56 CEST Aleix Pol wrote:
> On Mon, Apr 17, 2017 at 6:09 AM, Ben Cooksley <bcooksley at kde.org> wrote:
> > Hi all,
> > 
> > If someone could take a look at the following build log that would be
> > appreciated:
> > https://paste.kde.org/pzyhxydjw/xxx39x/raw
> 
> Include KDE on Windows.

I don't have MSVC 2017 around to test. Threadweaver compiles fine with MSVC 
2015.

Looks like a compiler bug at any rate, the code seems fine.

Possible work-around:

diff --git a/examples/ThumbNailer/Model.cpp b/examples/ThumbNailer/Model.cpp
index 1e4b111..19f233c 100644
--- a/examples/ThumbNailer/Model.cpp
+++ b/examples/ThumbNailer/Model.cpp
@@ -115,7 +115,7 @@ void Model::prepareConversions(const QFileInfoList 
&filenames, const QString &ou
     Q_ASSERT(m_images.isEmpty());
     m_images.resize(filenames.size());
     int counter = 0;
-    auto initializeImage = [=, &counter] (const QFileInfo& file) {
+    auto initializeImage = [=, &counter] (const QFileInfo& file) -> Image {
         auto const out = QFileInfo(outputDirectory, 
file.fileName()).absoluteFilePath();
         return Image(file.absoluteFilePath(), out, this, counter++);
     };


Cheers,
Kevin


> Aleix


-- 
Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-windows/attachments/20170418/ab765db0/attachment.sig>


More information about the Kde-windows mailing list