fix iterator bug

This commit is contained in:
an-tao 2018-05-31 18:56:07 +08:00
parent de6e93da66
commit 2875656d82
1 changed files with 2 additions and 2 deletions

View File

@ -63,11 +63,11 @@ void create_controller::handleCommand(std::vector<std::string> &parameters)
{
if(*iter=="-n"||*iter=="--namespace")
{
parameters.erase(iter);
iter=parameters.erase(iter);
if(iter!=parameters.end())
{
namespaceName=*iter;
parameters.erase(iter);
iter=parameters.erase(iter);
break;
}
else