21 Feb
2017
21 Feb
'17
5:16 p.m.
Will Metal be old as soon as Concepts appear? (ie probably C++20) Or are they complimentary?
Not at all, concepts are a replacement for std::enable_if and explicit SFINAE, but one still has to write the predicates themselves, which are not always as trivial as instantiating a type_trait. Specially when dealing with std::tuple and std::variant one may find oneself dealing with dozens to maybe hundreds of types, which in turn might have to be constraint in curious ways in order to express particular concepts. Metal will be there to make it easy.