Top 10 dumb mistakes to avoid with C++ 11 smart pointers - A CODER'S JOURNEY
I love the new C++ 11 smart pointers. In many ways, they were a godsent for many folks who hate managing their own memory. In my opinion, it made teaching C++ to newcomers much easier. However, in the two plus years that I've been using them extensively, I've come across multiple cases where improper use …
ALL CODE CRAFT May 15, 2016 Deb Haldar I love the new C++ 11 smart pointers. In many ways, they were a godsent for many folks who hate managing their own memory. In my opinion, it made teaching C++ to newcomers much easier. However, in the two plus years that I've been using them extensively, I've come across multiple cases where improper use of the C++ 11 smart pointers made the program inefficient or simply crash and burn. I've catalogued them below for easy reference. Before we begin, let's take a look at a simple Aircraft class we'll use to illustrate the mistakes. class Aircraft { private
Explore this link on the map →saved by
related reading
- Shows - Event & Video Content | Microsoft Learnchannel9.msdn.com
- Moves - Rust: A Better C++ Than C++thecodedmessage.com
- Falling Into The Pit of Successblog.codinghorror.com
- Destroy All Values: Designing Deinitialization in Programming Languages - Faultloregankra.github.io
- What is Ownership? - The Rust Programming Languagedoc.rust-lang.org
- References and Borrowing - The Rust Programming Languagedoc.rust-lang.org
- how I think when I think about programming - alice mazalicemaz.com
- Learn C++ – Skill up with our free tutorialslearncpp.com
- C++11 Memory Modelpeople.cs.pitt.edu
- Untangling Lifetimes: The Arena Allocator - by Ryan Fleurydgtlgrove.com
- CS106B Implementing VectorIntweb.stanford.edu
- A Bunch of Programming Advice I'd Give To Myself 15 Years Ago | Marcus' Blogmbuffett.com