From Jason Turner
Watch on YouTube

Summary

This episode explores the evolution from SFINAE (Substitution Failure Is Not An Error) to C++20's Concepts feature. Jason demonstrates how traditional SFINAE patterns using std::enable_if and type traits produce difficult-to-read code and error messages. He then shows how C++20 Concepts provide a cleaner, more intuitive syntax for constraining template parameters, return types, and local variables, resulting in more readable code and much clearer error messages for users.

Resources

Tags