3 ms·
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 innocuou
by uxp8u61q 3y ago
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.)