| 1st_noiz ( @ 2009-10-30 17:24:00 |
C++ templates: type of the iterator is unknown until instantiation
}
gcc error:
}
template<class T> void addAllVector() {
std::vector<T>::iterator it;}
gcc error:
test.cpp:4: error: expected `;' before 'it' test.cpp:5: error: 'it' was not declared in this scope
template<class T> void addAllVector() {
typename std::vector<T>::iterator it;}