11 Sep
2003
11 Sep
'03
3:38 p.m.
Hello, Ben!
You wrote on Thu, 11 Sep 2003 15:08:51 +0100:
BH> Older compilers performed only minimal parsing of templates before
they were instantiated, but the standard says they must do more
parsing. This requires that you tell them which dependent names
(names of things that depend on a template parameter) are being
used as type or template names. You need to put the keyword
"template" in front of "get<num>" so that the compiler can parse
it correctly.
I correct line 12 & 13:
tie(i1, i2, i3, c1, c2, c3).template get<num>() = t;
cout<