Unofficial Hacker News client - receive Push Notifications on replies.

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

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

View full thread · View on Hacker News

Comment thread (1)

  1. Can you give a concrete example? Why wouldn't you initialize the member to something, e.g. a sentinel value?

    Note that if the member is non-trivial, its default constructor is called either way.