Home GnuPG
Diffusion GPGME 60064c665ec9

qt: Add missing #include <functional>
60064c665ec9Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

qt: Add missing #include <functional>

* lang/qt/src/qgpgmenewcryptoconfig.cpp,
lang/qt/src/threadedjobmixin.h: Include functional.

With GCC 7.0, functional is not included transitively and we get:
In file included from qgpgmedeletejob.h:39:0,

from qgpgmedeletejob.cpp:38:

threadedjobmixin.h:98:33: error: 'function' in namespace 'std'

does not name a template type
 void setFunction(const std::function<T_result()> &function)
                             ^~~~~~~~

std::{function,bind,placeholders,mem_fn} are defined in functional.

References: https://bugzilla.redhat.com/show_bug.cgi?id=1417383

Commit Message amended by Andre Heinecke

  • Signed-off-by: Andre Heinecke <aheinecke@intevation.de>
  • GnuPG-Bug-Id: T2955

Details

Provenance
ignatenkobrainAuthored on Feb 11 2017, 8:36 AM
aheineckeCommitted on Feb 13 2017, 10:37 AM
Parents
rM903bf16a416b: qt: Don't rely on implicit include in t-verify
Branches
Unknown
Tags
Unknown

Event Timeline

Andre Heinecke <aheinecke@intevation.de> committed rM60064c665ec9: qt: Add missing #include <functional> (authored by Igor Gnatenko <ignatenkobrain@fedoraproject.org>).Feb 13 2017, 10:37 AM