I'm porting an application using the STL from Windows to RedHat Linux
v8.0 with GCC v3.2. I am attempting to use the STL map but am
encountering warnings that I did not encounter with Visual C++.
The pertinent aspects of the code looks something as follows:
#include <map>
template <class Idx_t, class Pld_t> class CDatabase {
public:
std::map<Idx_t, Pld_t> m_DB;
std::map<Idx_t, Pld_t>::iterator m_IT;
The warning I'm getting occurs when trying to create my variable forQuote:}
the iterator:
database.h:104: warning: `typename std::map<Idx_t, Pld_t,
std::less<_Key>,
std::allocator<std::pair<const _Key, _Tp> > >::iterator' is
implicitly a
typename
database.h:104: warning: implicit typename is deprecated, please see
the
documentation for details
I've used iterators like this quite a bit with Visual C++ but then
that's not saying much... What's different with GCC that it doesn't
like this method of accessing the iterator and what would be the
correct method?
Thanks in advance.
Randy Beckwith