[EMAIL PROTECTED] wrote: > Hello, > >> [EMAIL PROTECTED] wrote: >> > __gnu_cxx::hash_set< PointerTemplate*, pointerHashFunction, >> > pointerEquality, std::allocator< PointerTemplate* > >::iterator >> > hash_setIterator; >> >> You need typename in front of this, it is a dependent type. > > It works now! Thank you very much! > > But could you explain to me the difference between the declaration of > the hash set and the declaration of its iterator?
The iterator is a member of the hash_set. > It seems to me, that both are dependent times or none of them, since the > declaration is so similar! No. The compiler knows that hash_set is a class template, and thus hash_set<...> must be a type. But it cannot possibly know which members it contains, because that depends on the template parameters, and the exact template parameters is not known. -- rbh _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus