filmov
tv
CppCon 2018: Dan Saks “Making New Friends”

Показать описание
—
—
A friend of a class is a function or class that is not a member of that class, but nonetheless has access to all members of that class. The conventional wisdom is that granting friendship is something you do should sparingly. This lecture introduces a distinctive use for friend function declarations in class templates that's not about granting access to non-public members. Rather, it's about using a template as a
factory for "making" new friends. Along the way, this session explains various subtleties about operator overloading, overload resolution,
template instantiation, and name lookup for friend functions.
—
Dan Saks, Saks & Associates
President
—
*-----*
*-----*
—
A friend of a class is a function or class that is not a member of that class, but nonetheless has access to all members of that class. The conventional wisdom is that granting friendship is something you do should sparingly. This lecture introduces a distinctive use for friend function declarations in class templates that's not about granting access to non-public members. Rather, it's about using a template as a
factory for "making" new friends. Along the way, this session explains various subtleties about operator overloading, overload resolution,
template instantiation, and name lookup for friend functions.
—
Dan Saks, Saks & Associates
President
—
*-----*
*-----*
CppCon 2018: Dan Saks “Making New Friends”
Writing better embedded Software - Dan Saks - Keynote Meeting Embedded 2018
An interview with Dan Saks
Back to Basics: Const as a Promise - Dan Saks - CppCon 2019
Memory-Mapped Devices as Objects - Dan Saks - CppCon 2020
CppCon 2016: Dan Saks “extern c: Talking to C Programmers about C++”
CppCon 2018: Matthew von Arx “Set it and forget it!”
Back to Basics: Function and Class Templates - Dan Saks - CppCon 2019
Reframing our Craft as a Discipline - Dan Saks - Meeting C++ Secret Lightning Talks
CppCon 2018: Jon Kalb “This is Why We Can’t Have Nice Things”
Storage Duration and Linkage in C and C++ - Dan Saks
CppCon 2018: Valentin Galea “Rapid Prototyping of Graphics Shaders in Modern C++”
CppCon 2018: Simon Brand “How to Write Well-Behaved Value Wrappers”
CppCon 2018:Nicolas Fleury & Mathieu Nayrolles “Better C++ using Machine Learning on Large Proje...
CppCon 2018: Michael Price “Concepts and Contracts: When, What, and How”
Infiltrating a Code Base: Moving Toward a Better C - Brian Ruth - CppCon 2019
CppCon 2018: “Latest and Greatest in the Visual Studio Family for C++ Developers 2018”
Handling a Family of Hardware Devices with a Single Implementation - Ben Saks - CppCon 2021
East const but constexpr West - Dan Saks - code::dive 2018
CppCon 2018: Michael Caisse “Modern C++ in Embedded Systems - The Saga Continues”
CppCon 2018: Mark Elendt “Dangling in French and English”
Dealing with Embedded Limitations - Panel Discussion hosted by Ben Saks - CppCon 2020
CppCon 2018: Walter E. Brown “C++ Function Templates: How Do They Really Work?”
CppCon 2018: Tony Wasserka “Teaching Old Compilers New Tricks: Transpiling C++17 to C++11”
Комментарии