[Development] C++11 for Examples
Knoll Lars
Lars.Knoll at theqtcompany.com
Fri Mar 6 09:53:43 CET 2015
On 06/03/15 09:54, "Marc Mutz" <marc.mutz at kdab.com> wrote:
>On Tuesday 03 March 2015 11:30:51 Guido Seifert wrote:
>> Why not make different example categories?
>
>a) because it's more work, less fun, and people don't work on examples
>anyway,
> but they might, when they can modernize them.
>b) because one reason we want to have this is to experiment with
>C++11-only
> features in the Qt API, so come Flag Day, we don't need to poke around
>the
> new design space like blind men. And that means all examples should use
> C++11 (and 14) to the fullest extent possible.
>
>Some peole here are arguing for restrictions on the use of C++11 features
>in
>the examples. I'm against that. It thwards pointa a) and b), imo.
>
>If users have older compilers, they should just use the examples from Qt
>5.5.
>They can literally just be copied in.
Unfortunately that’s simply not practical to implement from a packaging
perspective. I understand the desire to use as modern C++ as possible, but
our examples still need to work with the compilers the majority of our
users are working with.
Cheers,
Lars
More information about the Development
mailing list