Unofficial Hacker News companion — get notified on comment replies, and more.

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

131 points by surprisetalk 7 days ago | lemire.me | 202 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. I moved from C++ to Java in my career. I was immediatey struck by how much simpler was Java as a language, not limited to constructors. Can you believe that an entire blog post is required to explain this insanely nuanced part of C++? I don't miss the armory of footguns.