C++ 17 may support headerless code. Will UE4, too?

Ditching headers is not a good thing, since the mechanism allows precise control over visibility of classes/variables/functions/etc in CPP files, unlike, say, C#, where declaring anything makes it visible in every file that has access to the same namespace which can result in clashes and namespace pollution. CPP files are isolated from each other and it is a GOOD thing.

Removing headers is shooting yourself in the foot. Not making programming easier.

Last time there was C++ standard upgrade it took several years to get major compilers to the point where they more or less supported new features. So, you should expect C++17 features to become widely available in 2021 or something like that.


I’m against this feature. It makes programmer’s life harder and offers no benefits.