~/talk

Back to Basics: Function Call Resolution in C++

name:Ben Saks
links:none on file
slides:none on file

Covers exactly how calls like f(x,y) get chosen: concrete rules for name lookup, argument-dependent lookup (ADL), overload resolution rankings, default arguments, and template deduction; shows the practical two-step std::swap trick and when a non-template overload wins ties. Examples trace conversion ranks, lookup order, and candidate sets so compilation errors are explained; slides and code snippets reproduce the surprising ambiguities and the fix that reliably selects a custom swap.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07Function overloading basics
  3. 10:03Overload resolution rankings
  4. 17:31Function signatures
  5. 20:04Name lookup in C++
  6. 30:13Name lookup vs overload resolution
  7. 33:27Argument dependent lookup
  8. 38:33Default args and overload resolution
  9. 41:26Function templates
  10. 47:08Customization points
  11. 58:20Key takeaways
  12. 59:33Q&A
~/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.