~/lightning

Customizing Compilation Error Messages Using C++ Concepts

Lightningat CppCon 2024 · on Sunday, 2024-09-15· [developer-experience]
links:none on file
slides:none on file

Uses C++20 named concepts plus a static reflection library to turn misspelled member-name errors into actionable suggestions by doing compile-time string processing. Implements a pull request that formats the failing string literal into “did you mean …” output and relies on substitution failure (SFINAE) rather than hard static_asserts so overload resolution can produce suggestions for multiple candidate types. Demonstration builds and prints correct suggested fixes for each overload.

AI-written summary · about

~/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.