News for hackers. Stuff that matters.
Re:We used C++20 to eliminate a class of runtime bugs by criddell on Friday January 14, 2022 @03:11PM (#29939694)
> Think about explaining this to a new C++ developer.

How's this:

The code allocates and initializes a new Foo instance with args. By using make_unique you guarantee that the destructor is called when foo goes out of scope for any reason.

There are no comments on this comment yet.