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. It became scary when the compilers started optimizing UB away.

    Before that you could just read the assembly to know what the code does. Afterwards any compiler update might have change the meaning