News for hackers. Stuff that matters.
Re:We used C++20 to eliminate a class of runtime bugs by not2b on Friday January 14, 2022 @03:18PM (#29939808)
The "best default" way of instantiating is

    Foo foo(args);
Sometimes an object has to be on the heap as its own separate allocation (rather than on the stack or as a data member), but I notice that some new developers who come to C++ from some other language use the heap way too much.

There are no comments on this comment yet.