Template multipmap issue

I have a template multimap class (std::multimap<K, V>) defined and am having issues with defining iterators for the multimap type (std::multimap<K, V>::iterator). The code I have works fine under MS VS 2003 and worked under derivatives of Fedora. I am now building using RHEL 5. Anybody have any advice?

Thanks!

Roger
What issues are you having?
Won't compile on RHEL 5. The following line

std::multimap<K, V>::iterator tiIterator;

gives me the following error: error: too few template-parameter-lists.

The same code under VS 2003 compiles without issue (and works).
Last edited on
I tried using
typename std::multimap<K, V>::iterator MultimapIteratorType

which compiled but as soon as I declare a type of MultimapIteratorType
MultimapIteratorType ti;

I get "error: expected ';' before ti;
Did you do

 
typedef typename std::multimap<K,V>::iterator MultimapIteratorType;


?

(Note use of typedef).
I actually just found that and used it and it worked.
Topic archived. No new replies allowed.