Overview
Explore the intricacies of user-defined literals (UDLs) in C++ through this comprehensive ACCU 2022 conference talk by Pablo Halpern. Delve into the benefits, implementation methods, best practices, and potential pitfalls of UDLs. Learn when to use and when to avoid creating custom literals, understanding their role in minimizing expressive differences between built-in types and user-defined types. Gain insights into various UDL definition techniques, ranging from simple to complex, and discover how to safely embrace this powerful C++ feature to enhance code readability and expressiveness.
Syllabus
Intro
Literal Examples
Outline
About me
Book
UserDefined Literals
Why UserDefined Literals
Common UserDefined Literals
Other Restrictions
Factory Functions
UserDefined Literal
syntactic sugar
how to define
namespaces
cooked udl operators
token example
possible overloads
cooked literals
raw udl operators
base3 udl
base3 error detection
Taught by
ACCU Conference