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 | 199 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (3)

  1. How is it ensured that make_foo will actually call make_foo_base?
    Replies (2)
    1. You are right, sorry, lost track or the thread.
    2. Because it needs a FooBase to give as the value for .base or the struct initialization isn't valid because it doesn't give values for all the members?