News for hackers. Stuff that matters.
Re:Current hardware trends make C++ exceptions harder to jus... by chlorion on Wednesday February 23, 2022 @05:31PM (#30447474)
As well as smart pointers as others have mentioned, standard library containers (other than smart pointers) are another way to handle dynamic allocations in certain situations. The vector container is probably the best example here, it alone provides massive safety and usability benefits over using new or malloc directly!

There are no comments on this comment yet.