This question already has an answer here:
- Am I missing anything here in my statement about c++? 5 answers
#include <map>
#include <string>
std::map<std::string, int> foo;
foo["bar"] = 1;
Why do I get the error "expression must be an integral constant expression" in visual studio 12?
I can't work this one out...