I am trying to learn more about list containers and how to iterate through them, but it seems that g++ has no problem with it, but Visual Studio C++ pukes all over the place!
#include <iostream>
#include <string>
#include <list>
using namespace std;
int main(){
list <string> data;
list <int>::iterator it;
data.push_back("fee");
data.push_back("fi");
data.push_back("foo");
data.push_back("fum");
// something breaks back here ?!?!
for(it=data.begin(); it!=data.end(); it++){
cout << *it << endl;
}
return 0;
}