Tag: requires
2 posts
-
C++20 Constraints in Practice: requires Expressions, Subsumption, and Overload Selection
How C++20 constraints actually behave: what a requires expression checks (syntax, not meaning), why only named concepts subsume each other, how constrained overloads are ranked, and the mistakes that make a concept accept the wrong types.
-
C++20 Concepts: Writing Readable Template Constraints with concept and requires
C++20 concepts and requires: the four constraint syntaxes, standard concepts, subsumption, real GCC/Clang errors and fixes, and migrating off enable_if.