g++ 3.4.3 template error

Eljay Love-Jensen eljay@adobe.com
Fri Sep 2 18:09:00 GMT 2005


Hi David,

Try this fixed code...

#include <map>
#include <iterator>
using namespace std;
class foo {
public:
  foo() { }

  template<class T>
  void setval()
  {
    map<T,int> mymap;
    typename map<T,int>::iterator it;
  }
};

HTH,
--Eljay




More information about the Gcc-help mailing list