You forgot to


#include <string>

you need to include that header if you're using the std::string class.

--
rval