[Bug c++/24811] Wrong compile template class with itetrator inside this class.See example.
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Nov 11 20:24:00 GMT 2005
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-11 20:24 -------
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;
};
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24811
More information about the Gcc-bugs
mailing list