[KPhotoAlbum] Compiler warning

Johannes Zarl-Zierl johannes at zarl-zierl.at
Sun Dec 10 17:34:19 GMT 2017


Hi Robert,

I've finally fixed the warning by setting the storage class of the function to 
static.

Cheers,
  Johannes

On Sonntag, 10. Dezember 2017 11:37:23 CET Robert Krawitz wrote:
> In file included from
> /home/rlk/sandbox/kphotoalbum/BackgroundTaskManager/PriorityQueue.cpp:21:0:
> /home/rlk/sandbox/kphotoalbum/Utilities/AlgorithmHelper.h:18:6: warning:
> mangled name for ‘bool Utilities::all_of(const Container&, UnaryPredicate)
> [with Container = QVector<QQueue<BackgroundTaskManager::JobInterface*> >;
> UnaryPredicate = std::_Mem_fn<bool
> (QList<BackgroundTaskManager::JobInterface*>::*)() const noexcept>]’ will
> change in C++17 because the exception specification is part of a function
> type [-Wnoexcept-type] bool all_of( const Container& container,
> UnaryPredicate p) {
>       ^~~~~~





More information about the Kphotoalbum mailing list