Re: g++ 3.4.3 template error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux