change set<string>* pset to set<string>sset
  use const_cast<> to solve the const_iterator