Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
uxp8u61q
· 3y ago · 0 comments
What antique part of the language am I using in this bugged code?
class A {}; std::unique_ptr<A> array(new A[256]);
It's very easy to produce innocuous-looking code that contains leaks. (And yes, I know that make_unique solves the problem here.)
Comments
[–]
leptons
3y ago
At this point I'd rather just write assembly language.
[–]
harrid
3y ago
new