C++20 concepts: part 2

Gajendra Gulgulia
7 min readOct 30, 2021

In the first article about concepts, the basic rationale behind C++20’s concept was explained with the help of a very simple generic print method. Specifically the problem with pre-C++20 generic code not enforcing a requirements on the interface it should provide on the template type parameter T eventually causing a messy compilation error during substitution of T with the actual type.

--

--