Tagged articles

SFINAE

3 articles · Page 1 of 1
Deepin Linux
Deepin Linux
Jun 24, 2026 · Fundamentals

Master Compile‑Time Polymorphism: Ditch Obscure SFINAE with C++20 Concepts

The article explains compile‑time polymorphism in C++, shows why traditional SFINAE is hard to read and debug, and demonstrates how C++20 Concepts provide clearer syntax, precise errors, and better multi‑condition support, backed by side‑by‑side code examples and a detailed feature comparison.

C#ConceptsMetaprogramming
0 likes · 12 min read
Master Compile‑Time Polymorphism: Ditch Obscure SFINAE with C++20 Concepts
Liangxu Linux
Liangxu Linux
Oct 3, 2025 · Fundamentals

Why Modern C++ Templates Are Getting Simpler: From SFINAE to Concepts

This article traces the evolution of C++ template constraints—from the cryptic SFINAE and enable_if techniques, through the clearer constexpr if introduced in C++17, to the expressive and user‑friendly Concepts of C++20—showing how each step makes generic programming more readable and maintainable.

C++C++20Concepts
0 likes · 7 min read
Why Modern C++ Templates Are Getting Simpler: From SFINAE to Concepts