- Partial class template specialization with maps
- template<typename T, typename D>
- const D& custIterator<T,D>::next()
- {
- const D& obj = (*it);
- if(hasNext())
- {
- it++;
- }
- return obj;
- }
- //the above works fine
- template<typename T, typename D>
- const D& custIterator<map<T,D>,D>::next() //error in this line
- {
- D& obj = (*it).second;
- if(hasNext())
- {
- it++;
- }
- return obj;
- }
- std::map<T,D>