Boost logo

Boost Users :

From: nagual (nagual_at_[hidden])
Date: 2003-09-11 10:38:06

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<<tie(i1, i2, i3, c1, c2, c3).template get<num>()<<endl;
g++ (GCC) v 3.2.2 now compile ok.
But cl (MSVC) v 13.00.9466 output not change. ;-c

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at