diff --git a/chapters/90_theory.tex b/chapters/90_theory.tex index 186f7f6..3c31311 100644 --- a/chapters/90_theory.tex +++ b/chapters/90_theory.tex @@ -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. \ No newline at end of file