← Top stories In C++, = default and {} are not the same constructor ↗ (opens external site) 129 points by surprisetalk 2 days ago | lemire.me | 198 comments on HN ↗ View full thread · View on Hacker News Comment thread (1) spacechild1 | 2 days ago | parent | reply 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.
Note that if the member is non-trivial, its default constructor is called either way.