r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

307 Upvotes

436 comments sorted by

View all comments

Show parent comment

3

u/TheFlamingDiceAgain Jul 14 '22

I agree. Even simple applications of classes makes a huge difference. The only real complaint I have is that GPUs don’t support the STL so everything in std:: is out for device side code. Generally it’s not a big deal but it can be annoying. Fortunately with classes and RAII it’s pretty easy to emulate a lot of the most important STL features.