>>12439778Because that’s what the language was designed for by Bjarne originally. Over time he unfortunately changed his philosophy to make C++ be able to do everything and so at this point its the most bloated language by a large mile.
How to program C++ correctly:
-C with classes means that you have the option to do classes and OOP, but not the obligation. Stop OOPing everything.
-Stop using stuff for which you dont know compiler behavior.
-Stop using smart pointers and actually learn memory management.
-Stop using templates for stuff you can do with macros.
-Avoid exceptions(biggest garbage of c++) and overloading(literally for brainlets)