← Top stories Reading mode 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 (1) − vips7L | 5 days ago | parent | reply on HN ↗ (opens Hacker News) | vote on HN ↗ (opens Hacker News) It’s ambiguous to the reader, but the JLS strictly defines which constructor would be called here. It’s the int a, int b constructor.
Comment thread (1)