[Development] qtdeclarative-5.6.0-beta build failure on rhel6
Takahiro Hashimoto
kenya888 at gmail.com
Thu Jan 28 02:02:53 CET 2016
Hi,
Thank you Marco for your quick fix:)
On 2016年1月27日水曜日 8時45分03秒 JST Hausmann Simon wrote:
> 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?
As Marco's workaround, setting local types to the args of template class
(std::find_if in this case) comes from C++11, I think.
http://www.stroustrup.com/C++11FAQ.html#local-types
Regards.
Takahiro
>
> 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
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
More information about the Development
mailing list