2 ms·
In the context of generics/templates, it is unrelated. GP is right. C++ templates are duck typed, but with concepts they're now moving towards static contracts
by c-cube 4y ago
In the context of generics/templates, it is unrelated. GP is right.
C++ templates are duck typed, but with concepts they're now moving towards static contracts on parameters, like rust's trait bounds. No relation to inheritance or the notion of class.
- moonchild 4y agoIt is obviously different, but that does not mean that it is unrelated.