In C++, = default and {} are not the same constructor (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
When I used to program in C++, my general rule was that applications follow the "rule of zero" (no explicit constructors), and libraries do what's needed to make the rule of zero work for applications.
Replies (1)
Replies (1)
If more logic surrounding their construction is needed, you can use factory functions.
Replies (1)