1

When Should You Give Two Things the Same Name? - Arthur O'Dwyer - [CppNow 2021]

 2 years ago
source link: https://www.youtube.com/watch?v=OQgFEkgKx2s
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
#Boost​ #Cpp​ #CppNow​

When Should You Give Two Things the Same Name? - Arthur O'Dwyer - [CppNow 2021]

1,123 views
Premiered Jun 28, 2021

18.5K subscribers

#Boost​ #Cpp​ #CppNow​ Slides: https://cppnow.org/history/2021/talks/ CppNow Website: https://cppnow.org​ CppNow Twitter: @CppNow Streamed & Edited By Digital Medium Ltd: https://events.digital-medium.co.uk​ ------ C++ gives us many opportunities to name two things the same. Two functions can have the same name if they have different signatures; two members can have the same name if they're in different classes; two entities can have the same name if they're in different namespaces. C++ also gives us a handful of tools to exploit same-named-ness: virtual functions and dynamic dispatch, overload resolution, templates, concepts, and (to a lesser extent) macros, typedefs, and namespace aliases. In this philosophical talk replete with cherry-picked examples, I contend that we should give two entities the same name if and only if we intend to manipulate them with one of these tools.

------ Arthur O'Dwyer C++ Trainer

Arthur O'Dwyer is the author of "Mastering the C++17 STL" (Packt 2017) and of professional training courses such as "Intro to C++," "Classic STL: Algorithms, Containers, Iterators," and "The STL From Scratch." (Ask me about training your new hires!) Arthur is occasionally active on the C++ Standards Committee and has a blog mostly about C++. He is also the author of "Colossal Cave: The Board Game," an avid club juggler, and the recipient of four ------ CppNow 2021: May 1, 2022 - May 6, 2022 - Aspen, Colorado -------------------------


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK