
Mathias wrote on Tuesday, August 28, 2012 at 16:21:01:
On 26/08/2012 14:28, pavel wrote:
thanks for the question
the advantage is that you may completely ignore the tag as in
template<typename type> void f(const Base<type>&);
This is also possible with the code above, since the tag is not part of the template parameters of Base.
the quote is out of context (or was that your intention?) the full quote should be:
the advantage is that you may completely ignore the tag as in
template<typename type> void f(const Base<type>&);
or you may use it straightforwardly like
template<typename type typename tag> void g(const Base<type, tag>&);
and the most important -- you may explicitly specify tag for a function like
template<typename type> void h1(const Base<type, tag1>&);
notice the "or" and "and" clauses -- Pavel P.S. if you notice a grammar mistake or weird phrasing in my message please point it out