logoalt Hacker News

spacechild1 • today at 7:44 PM • 0 replies • view on HN

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.