title: cannot convert from 'const char *' to 'std::_String_const_iterator<_Elem,_Traits,_Alloc>
body: <p>I am running Openipmp client on windows on MS visual studio 2005. Though according to document it was tested only on visual studio 6 and MS visual studio .NET. </p>
  
  <p>when i am compiling DRMPlugin, one piece of code giving error</p>
  
  <pre><code>error C2440: '&lt;function-style-cast&gt;' : cannot convert from 'const char *'
  to 'std::_String_const_iterator&lt;_Elem,_Traits,_Alloc&gt;'
          with
          [
              _Elem=char,
              _Traits=std::char_traits&lt;char&gt;,
              _Alloc=std::allocator&lt;char&gt;
          ]
          No constructor could take the source type, or constructor overload resolution was    ambiguous
  </code></pre>
  
  <p>Here is the code </p>
  
  <pre><code>bool OpenIPMPDOIContentInfoManager::ParseHostIPPort(const std::string&amp; hostURL,
      std::string&amp; hostIP, int&amp; hostPort) {
    const char* colon = strchr(hostURL.data(), ':');
    if (colon == NULL) {
      return false;
    }
    hostIP = std::string(hostURL.begin(), std::string::const_iterator(colon));
    hostPort = atoi(++colon);
    return true;
  }
  </code></pre>
  
  <p>Can somebody tell me what is wrong with the code.</p>
  
  <p>Please help.</p>