An unofficial, read-only Hacker News reader. Join the beta →

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)

  1. All things... except non-nullable pointers, movable values, type punning, ergonomic sum types, and the list is frankly much longer.

    The only way you could think that C++ lets you do everything is if you've never tried anything else.