trainings/AdvancedCppV2/Presentation/smart_pointers_auto_ptr.md

10 lines
572 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- .slide: data-background="#ccc" -->
## `std::auto_ptr<>` - something to forget
* <!-- .element: class="fragment fade-in" --> C++98 provided <code>std::auto_ptr<></code>
* <!-- .element: class="fragment fade-in" --> Few fixes in C++03
* <!-- .element: class="fragment fade-in" --> Yet still its easy to use incorrectly…
* <!-- .element: class="fragment fade-in" --> Deprecated since C++11
* <!-- .element: class="fragment fade-in" --> Removed since C++17
* <!-- .element: class="fragment fade-in" --> Do not use it, use <code>std::unique_ptr<></code> instead