CppCon 2014 Back to the Basics! Essentials of Modern C++ Style—Herb Sutter

Save to:
Instapaper Pocket Readability

While we wait for CppCon 2015 in September, we’re featuring videos of some of the 100+ talks from CppCon 2014. Here is today’s feature:

Back to the Basics! Essentials of Modern C++ Style

by Herb Sutter

(watch on YouTube) (watch on Channel 9)

Summary of the talk:

This talk revisits basic questions, such as how to declare and initialize a variable, how to pass a value to a function, how to write a simple loop, and how to use smart pointers, in the light of experience with C++11 and the latest C++14 refinements. This involves examining auto, rvalue references, range-for loops, uniform initialization, lambda expressions, unique_ptr and shared_ptr, and more.

Add a Comment

You must sign in or register to add a comment.

Comments (1)

0 0

Igor Hersht said on Feb 8, 2015 04:06 PM:

I think that the only reliable way to avoid passing shared_ptr by value is week_ptr. One could use shared_ptr& only if the lifetime 100% known. Once shared_ptr is for shared ownership it is rarely the case.