What is the correct initialisation of a smart pointer?
std::unique_ptr<Class> ptr = std::make_unique<Class>();
Is there an implicit copy with the second usage?
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.Sign up to join this community