I want to write a function
template <class T> X foo (T);
where T is of type std::pair(X, X).
T
std::pair(X, X)
How can I deduce the return type X from T?
X
Aucun commentaire:
Enregistrer un commentaire