Customizing Compilation Error Messages Using C++ Concepts
summary
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
related talks
50mPruning Error Messages From C++ Template Code
01h 00mDebug C++ Without Running
56mC++ Code Smells
53mDebug C++ Without Running
08mAutomatically enhancing error messages
25mUpgrade from "permissive C++" to "modern C++" with Visual Studio 2019
52m“Tools from the C++ eco-system to save a leg”
48mTooling Intuition
