2 ms·
I don't know about "main", but like, you don't need raw pointers to have UB. uniq_ptr is nullptr after you move it. And even then, my understanding is that raw
by steveklabnik 4y ago
I don't know about "main", but like, you don't need raw pointers to have UB. uniq_ptr is nullptr after you move it.
And even then, my understanding is that raw pointers are still intended to be used in Modern C++: they're there for when you don't want to transfer ownership.