Discussion:
QtConcurrent using Variadic Template Arguments
Keith Gardner
2011-09-14 16:06:02 UTC
Permalink
I was wondering if QtConcurrent could be modified to use Variadic Template Arguments for the run function since this feature is now available with C++11?
Thiago Macieira
2011-09-14 20:26:29 UTC
Permalink
Post by Keith Gardner
I was wondering if QtConcurrent could be modified to use Variadic Template
Arguments for the run function since this feature is now available with
C++11?
I thought that work was done in Qt 4.8 already. Can you check?
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
Keith Gardner
2011-09-15 14:27:14 UTC
Permalink
I just looked through the qtconcurrentrun.h file for Qt 4.8 Beta 1 and did not find any variadic template definitions.

On a side note, I was just looking at Microsoft's information about Visual Studio 11's compliance with the c++11 specification (http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx) and noticed that they don't support it anyways.

Keith

-----Original Message-----
From: qt5-feedback-bounces+kgardner=***@qt.nokia.com [mailto:qt5-feedback-bounces+kgardner=***@qt.nokia.com] On Behalf Of Thiago Macieira
Sent: Wednesday, September 14, 2011 3:26 PM
To: qt5-***@qt.nokia.com
Subject: Re: [Qt5-feedback] QtConcurrent using Variadic Template Arguments
Post by Keith Gardner
I was wondering if QtConcurrent could be modified to use Variadic
Template Arguments for the run function since this feature is now
available with
C++11?
I thought that work was done in Qt 4.8 already. Can you check?

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
Olivier Goffart
2011-09-16 20:20:41 UTC
Permalink
Post by Keith Gardner
I was wondering if QtConcurrent could be modified to use Variadic Template
Arguments for the run function since this feature is now available with
C++11?
It would not be that easy because of the current implementation design of
QtConcurrent. (it would basically involve a rewrite of all the current
template logic)
Also, we have to keep it working with compiler that do not support C++11.

(I only see one benefit of having variadic template support: make possible to
call functions with more arguments. And that can now be done with a very small
boilerplate)

But QtConcurrent really could benefit from some love. Both the templated code,
but also the internals (to reduce the overhead of the framework).
--
Olivier
Loading...