CedricWehrum
unique_ptr::get() is probably not only necessary for legacy code. I haven't figured out how to use polymorphism without unique_ptr::get()
I mean this kind of stuff:
Base* b ( /*init*/ );
( (Derived*) b )->only_in_Derived();
Is only possible with unique_ptr in the following way:
unique_ptr<base> ( /*init*/ );
( (Derived*) b.get() )->only_in_Derived();
Note that this doesn't invalidate the uniqueness of the pointer.