On Mon, Sep 23, 2013 at 08:33:23AM -0700, Thiago Macieira wrote: > On segunda-feira, 23 de setembro de 2013 16:36:43, Olivier Goffart wrote: > > The solution would have to have forward declaration header that forward > > declares all the classes. Then we would forbid forward declaration of > > Qt classes. Let a few versions for users to adapt. And then we can > > allow changes that break forward declaration. > > You may provide this header in Qt 5. We could even tell people that it's > the correct way of forward-declaring classes in Qt 5. > > But we must not break source compatibility until Qt 6. Then we will > simply have to choose whether we want to introduce that potentially > widespread break in Qt 6. > > An alternative and limited-impact change is to do that only for the > template classes.
I am generally not a big fan of "useless" includes, but an interesting, and argably positive, side-effect of having the forwarding headers for all classes is that it would remove some of the ugliness of writing "namespace aware" code. Andre' _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
