Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++unique_ptrSingle-choice MCQ

Why does this factory return type matter, and what does the conversion at the call site do?

std::unique_ptr<Derived> make(); std::unique_ptr<Base> b = make(); // Base has a non-virtual destructor