[Development] qtdeclarative-5.6.0-beta build failure on rhel6

Hausmann Simon Simon.Hausmann at theqtcompany.com
Wed Jan 27 09:45:03 CET 2016


Ok, I had another look. I don't think find_if is new in C++11:

‎http://en.cppreference.com/w/cpp/algorithm/find

It seems find_if_not is, but not find_if. So I think what we see here is‎ simply a compiler bug perhaps?

Thanks to Marco it seems that we have a workaround:

https://codereview.qt-project.org/#/c/147484/

‎So I don't have the impression that C++11 code can slip through the CI for the 5.6 branches. However if you do discover an incidence please holler :)

Simon

  Original Message
From: Olivier Goffart
Sent: Monday, January 18, 2016 16:26
To: development at qt-project.org
Cc: Rex Dieter
Subject: Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6


On Montag, 18. Januar 2016 08:31:01 CET Rex Dieter wrote:
> I'm trying to build(bootstrap) qt-5.6.0-beta stack on rhel6, and have run
> into a build failure in qtdeclarative,
<snip>
> beta/tools/qmlimportscanner/main.cpp:376: error: no matching function for
> call to 'find_if(QList<QFileInfo>::const_iterator,


std::find_if is new in C++11
And it was used in https://codereview.qt-project.org/125853/ in the 5.6 which
still does not require C++11.

Apparently the CI does not try to build this with non-c++11 enabled compilers?

--
Olivier

Woboq - Qt services and support - https://woboq.com - https://code.woboq.org
_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development



More information about the Development mailing list