Get the latest tech news

The C++ Iceberg


0[arr] #define private public inline does not mean inline most vexing parse <iosfwd> C++ is not a superset of C protected abstract virtual base pure virtual private destructor spaceship operator --> operator digraphs else if is a lie vector<bool> is broken unary minus with unsigned operand analog integer literals templates turing completeness was an accident zapcc compiler std::move does not move std::remove does not remove the strange details of std::string iostream was a mistake rvalue references are lvalues function try blocks T&& is not an rvalue reference shared_ptr is an anti-pattern initialization matrix the for loop is broken constexpr does not mean what you think it means const std::string bitand templates are obfuscated haskell the grand error explosion competition operator,() herbceptions std::optional is a monad C++0x is a hexadecimal name heap and stack don't exist hello world has a bug C++ disproves fermat’s last theorem C++0x concepts were rust traits godbolt is a real person.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of C++ Iceberg

C++ Iceberg