In C++, = default and {} are not the same constructor
4 comments
- Points18
- Comments8
4 comments
Story details from Hacker News ↗ · linked article on lemire.me.
In C++, = default and {} are not the same constructor was first seen on Hacker News · Front page on Nov 25, 2026. Since then it has appeared in 32 checks on 2 different days. Its best position was #4 of 30, reached on Nov 25, 15:44 UTC. It dropped off the list after Nov 26, 01:29 UTC.
Position on Hacker News · Front page at every check (lower is better).
Best rank per day (UTC).
Platform metric as reported by Hacker News.
A few top-level comments from Hacker News, shortened. Read the full thread on Hacker News.
No language scares me like C++ does. Look at this page: https://www.learncpp.com/cpp-tutorial/variable-assignment-an... This is just a single section of the first chapter of a beginner tutorial. And it's already more things to remember than, say, the whole Lua.
The only sane usage of C++ is to only use a very small subset of its features.
Archived daily, weekly and monthly lists that include this entry.
Not at the moment. It was last on the list on Nov 26, 01:29 UTC, after 2 days of trending.
#4 on Hacker News · Front page, on Nov 25, 15:44 UTC. Trendoday checks this list every 15 minutes.
It was first seen on Nov 25, 2026 and has been on the list on 2 days (32 checks) since.
18 points and 8 comments; submitted by surprisetalk on Nov 25, 2026.