Summary: | Wrong compile template class with itetrator inside this class.See example. | ||
---|---|---|---|
Product: | gcc | Reporter: | Andrey Luzin <android> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | VERIFIED INVALID | ||
Severity: | major | CC: | android, gcc-bugs |
Priority: | P3 | ||
Version: | 4.0.0 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
Andrey Luzin
2005-11-11 20:21:57 UTC
std::multimap<Key,int>::iterator iter; You forgot the typename keyword as std::multimap<Key,int> is dependent. So your source should look like: template <typename Key,typename Value> class mutant_iter { private: std::vector<Value> *Vector; std::multimap<Key,int> *Mmap; typename std::multimap<Key,int>::iterator iter; }; It's true. Tanks. |