Skip to content

Comment on Defective C++parent

Comments

Ah, I did not know that. I mostly use CoW when I do Qt stuff to get a clean API (but Qt gives you whole range of other annoyances). Qt data types works well together with std lambdas without the need of smart pointers.

In what other language has so many Stack Overflow threads and blog post been dedicated just how to pass a simple parameter to a function. And with C++11 we have one more way of doing it. It is really mind-boggling.

I never have this problem in other languages and I can do equal the heavy lifting.

And for the C++ programmer it gives a false sense of satisfaction when spraying the code with const& everywhere. I saved performance!

Just bizarre.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.