[Development] Notes on "Managing Qt's branches" session @ QCS 2016
Thiago Macieira
thiago.macieira at intel.com
Tue Oct 4 15:32:11 CEST 2016
Em terça-feira, 4 de outubro de 2016, às 11:03:58 CEST, Edward Welbourne
escreveu:
> Marc Mutz said:
> > Qt 5.6 is C++98-only while 5.7+ is C++11. That means patches that will
> > be developed against 5.7+ will very likely have C++11 constructs in
> > them that won't work in Qt 5.6.
>
> Conversely, code developed in 5.6 shall avoid C++11 constructs; when we
> merge to 5.7, we need to review to find C++11 usage we can apply, which
> tends to get missed after merges.
Adding a few new Q_NULLPTR and Q_DECL_OVERRIDE are not a problem.
You can't add new "foreach", but that's about all. So if you write your code
in 5.6 using a regular for with iterators, it's fine to keep as-is in 5.7 and
up.
> > OTOH, with very few exceptions such a Q_FOREACH, code that
> > successfully integrated into 5.6 will successfully integrate in 5.7+.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list