title: error C2448: function-style initializer appears to be a function definition
body: <p>I have the following piece of code -</p>
  
  <pre><code>void CommandProcessor::ReplacePortTag((void *) portID)
  {
      std::string temp = std::string.empty();
      int start = 0;
      for (int i=0; i&lt;CommandProcessor::fileContents.length(); i++)
      {
          if (CommandProcessor::fileContents.substr(i,6) == "&lt;port&gt;")
          {
              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;
  }
  </code></pre>
  
  <p>When I try to compile I'm getting the error -</p>
  
  <pre><code>error C2448: 'CommandProcessor::ReplacePortTag' : function-style initializer appears to be a function definition
  </code></pre>
  
  <p>I am unable to figure out where I'm going wrong. What do I modify to fix this error?</p>