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 3 days ago | lemire.me | 198 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. Maybe I've been doing this for too long, but I don't see why you'd want to stay away from template metaprogramming, especially with the more recent C++ versions. The type traits header makes heavy use of it (so you're probably using it with if constexpr), and C++14/17/20 make it a lot more readable than it used to be.