~/talk

Back To Basics: Overload Resolution

Talkat CppCon 2021 · on Tuesday, 2021-10-26· at 09:00· online· [rust]
links:none on file
links:none on file
slides:none on file

Condenses the C++ standard to the concrete rules that decide overload choice: ranking of standard conversions (exact match, promotions vs conversions), template argument deduction vs non-templates, user‑defined and ellipsis conversions, and the C++20 concepts tie‑breaker. Shows surprising ambiguites (int→long vs int→char, 32–35 page standard clauses cited), runnable examples and quizzes, and practical fixes: mark constructors explicit, use SFINAE/concepts or explicit casts, add/remove overloads. Companion code lives on GitHub (CopperSpice, DoxyPress, cs_string, cs_signal, libGuarded) and examples behave consistently across compilers.

AI-written summary · about

  1. 0:00Intro
  2. 0:33Overview
  3. 1:42About CopperSpice
  4. 3:59About Open Source
  5. 4:20Terminology
  6. 9:41Do thing
  7. 11:30Default arguments
  8. 13:50Overloads vs Templates
  9. 15:52What is Overload Resolution
  10. 19:09Overload Resolution Process
  11. 24:14Ranking
  12. 27:40Standard conversions
  13. 30:05Quiz
  14. 33:56UserDefined Conversion
  15. 35:25tiebreakers
  16. 37:47online question
  17. 42:17no matching function
  18. 43:04a listing
  19. 43:50fun round
  20. 49:44Back to example 7
  21. 55:43Back to example 9
  22. 58:39Takeaway
  23. 59:31YouTube Channel
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.