Bjarne Stroustrup's CppCon 2025 talk covers concept-based generic programming in C++, tracing its origins and demonstrating practical applications. He walks through building a type-safe numeric wrapper that prevents implicit narrowing conversions, a bounds-checked span type, and concept-constrained sort functions. Key themes include using C++ concepts as compile-time predicate functions, combining concepts to build richer constraints, the complementary relationship between generic and object-oriented programming, and a preview of C++26 static reflection for generating class member layout descriptors. Stroustrup emphasizes that concepts should be named, composable, and driven by real problems rather than abstraction for its own sake.

1h 23m watch time

Sort: