An unofficial, read-only Hacker News reader.

In C++, = default and {} are not the same constructor (opens external site)

130 points by surprisetalk 3 days ago | lemire.me | 198 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. And that's exactly what's so scary in C++. As a Java developer I had to create an .so once, and I was striving towards C++ but my colleague gave me "21st century C". I delivered the solution in 2 months to production, and it was stable. It had some minor issues, like a lot of char field1[len()+1] (a GCC extension allowing to automatically allocate and deallocate from heap), but if I wrote it in C++ i wouldn't make it. Too high entry level and also these...