Ich habe folgenden Code -
void CommandProcessor::ReplacePortTag((void *) portID)
{
std::string temp = std::string.empty();
int start = 0;
for (int i=0; i")
{
temp += CommandProcessor::fileContents.substr(start,i-start);
temp += portID;
start = i+6;
}
}
temp += CommandProcessor::fileContents.substr(start+6,CommandProcessor::fileContents.length()-start-6);
CommandProcessor::fileContents = temp;
}
Beim Versuch zu kompilieren erhalte ich den Fehler -
error C2448: 'CommandProcessor::ReplacePortTag' : function-style initializer appears to be a function definition
Ich kann nicht herausfinden, wo mein Fehler liegt. Was muss ich ändern, um diesen Fehler zu beheben?