I'm starting to use templates and I just got a weird error which I was
able to simplify into this code:
#include <vector>
using std::vector;
template<class T>
class foo {
public:
void setval(vector<T>::const_iterator itBegin,
vector<T>::const_iterator itEnd) { }
};
I get by g++:
$ g++ -Wall -std=c++98 -c temptest.cc
temptest.cc:8: warning: `std::vector<T, std::allocator<_CharT>
::const_iterator' is implicitly a typename temptest.cc:8: warning: implicit typename is deprecated, please see the
documentation for details
temptest.cc:8: warning: `std::vector<T, std::allocator<_CharT>::const_iterator' is implicitly a typename
temptest.cc:8: warning: implicit typename is deprecated, please see the
documentation for details
Can someone please explain me what's happening?
Cheers,
Paulo Matos