Mail Archives: djgpp/2004/03/17/18:00:36
I'm sure there's a simple answer to this, but I can't find it.
The code:========================
#include <deque>
template <class T>
class foo {
public:
std::deque<T> foo_deque;
void foo_method( void ) {
std::deque<T>::iterator i = foo_deque.begin();
}
};
int main( void ) {
}
the compile=========================
C:> gpp -Wall test.cpp
test.cpp: In member function `void foo<T>::foo_method()':
test.cpp:10: warning: `typename std::deque<T, std::allocator<_CharT>
>::iterator' is implicitly a typename
test.cpp:10: warning: implicit typename is deprecated, please see the
documentation for details
The original code that generated this message (too bulky to include,
so I made the little example above) will compile and run just fine, but
I'd love to understand the warning and how to get past it. The compiler
is DJGPP gcc version 3.2.
Thanks in advance,
Dan
- Raw text -