r/cpp • • Apr 24 '20

C++ Fork?

Let me start by simply saying that I am fairly new to C++ and this is the first time I am posting to this sub-Reddit. I hope I am not breaking any rules here.

I have a question:

Would it be possible for C++ to be forked into a newer more modern version like the way Python went from version 2.x to 3.x? Maybe clean-up the language a bit, remove some redundant features etc.

0 Upvotes

51 comments sorted by

View all comments

7

u/greg7mdp C++ Dev Apr 25 '20

I wish there was a way to specify C++ compiler options which would disable support for some old undesirable features. These could be used when building new projects, as a way to enforce a cleaner, more modern language.

5

u/Wouter-van-Ooijen Apr 27 '20

The main problem is headers: if you disable certain features, you can't include headers that use these features.

Disable the features after including the headers? Some features are implemented by macro's, which are expanded in your code when you use the features...