This should have "#include <string>" at the top.