Boost logo

Boost Users :

From: nagual (nagual_at_[hidden])
Date: 2003-09-11 10:28:14


Hello, Ben!
You wrote on Thu, 11 Sep 2003 15:08:51 +0100:

 BH> Older compilers performed only minimal parsing of templates before
 BH> they were instantiated, but the standard says they must do more
 BH> parsing. This requires that you tell them which dependent names
 BH> (names of things that depend on a template parameter) are being
 BH> used as type or template names. You need to put the keyword
 BH> "template" in front of "get<num>" so that the compiler can parse
 BH> 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 hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net