cpp11training
cpp11training copied to clipboard
smart pointer presentation contains some antipatterns
Slide 15:
std::unique_ptr<derived> dp{static_cast<derived*>(bp.get())};
--> here, D is owned twice!
bp.release();