T
Todd A. Anderson
#include <map>
using namespace std;
template <typename S, typename T>
void bar(void) {
map<S,T>::iterator theiter;
}
int main(void) {
return 0;
}
At the declaration of theiter, gcc (both 3.4 and 4.0) gives me:
error: expected ';' before "theiter"
Am I totally braindead or why does this not work?
using namespace std;
template <typename S, typename T>
void bar(void) {
map<S,T>::iterator theiter;
}
int main(void) {
return 0;
}
At the declaration of theiter, gcc (both 3.4 and 4.0) gives me:
error: expected ';' before "theiter"
Am I totally braindead or why does this not work?