Skip to content

Commit

Permalink
Merge overleaf-2022-09-28-1636 into main
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyCerberus authored Sep 28, 2022
2 parents a5ab43e + ac10beb commit 2a09740
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chapters/90_theory.tex
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ \subsection{\texorpdfstring{\CC20 ADL customization point}{C++20 ADL customizati

With the introduction of concepts in \CC20, we now have a cleaner way to introduce a customization point using ADL.

\begin{box-note}
\footnotesize Example.
\tcblower
\cppfile{code_examples/theory/adl_niebloid_code.h}
\end{box-note}

This approach has several benefits, in particular on the call site. We no longer need to remember to pull in the namespace of the default implementation. Furthermore, because the call is now fully qualified, we avoid the problem of symbol collisions that can potentially completely prevent ADL.

0 comments on commit 2a09740

Please sign in to comment.