15.02.2017, 19:07, "Jean-Michaël Celerier" <[email protected]>:
 
On Wed, Feb 15, 2017 at 3:17 PM, Alexander Dyagilev <[email protected]> wrote:

 

One has to write all these includes in every header file. Again and again... :(

 

That's the correct practice. Else you are just putting back the pain to the inevitable day where you encounter a bug in the PCH mechanism which forces you to disable it, or when using a compiler that does not handle PCH.
 
Yet there is real-world code that requires that, e.g. some code in WebKit requires use of PCH or at least force inclusion (-include filename.h) of header to work.
 
 
You can use Include what you use (https://include-what-you-use.org/) that will automatically try to add the correct header.
 
Best
Jean-Michaël
,

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

 
 
-- 
Regards,
Konstantin
 
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to