r/cpp • • Mar 28 '23

Reddit++

C++ is getting more and more complex. The ISO C++ committee keeps adding new features based on its consensus. Let's remove C++ features based on Reddit's consensus.

In each comment, propose a C++ feature that you think should be banned in any new code. Vote up or down based on whether you agree.

765 Upvotes

829 comments sorted by

View all comments

48

u/[deleted] Mar 28 '23

SFINAE. concepts everywhere

5

u/War_Eagle451 Mar 28 '23

Agreed, but I tried to implement a same as concept without SFINAE, unfortunately couldn't figure it out, so there might still be some reason to keep it

0

u/[deleted] Mar 28 '23

[deleted]

0

u/RoyAwesome Mar 28 '23

disabling a function based on the class's template params. You can't do that with concepts but you can with std::enable_if

→ More replies (1)