title: c++ error c3892 : You can not assign a const variable
body: <p>I have one error:
  You can not assign a const variable</p>
  
  <p>Class :</p>
  
  <pre><code>    class RegChannel {
  public:
      std::string channelID;
      std::string pwd;
      DWORD color;
      bool  bActive;
  
      bool operator &lt; (const RegChannel &amp;r) const {
          return(stricmp(channelID.c_str(), r.channelID.c_str()) &lt; 0);
      }
  };
  
  std::set&lt; RegChannel &gt; regChannels;
  std::map&lt; std::string, DWORD &gt; savedColor;
  std::map&lt; std::string, bool  &gt; savedStatus;
  </code></pre>
  
  <p>Function:</p>
  
  <pre><code>        set&lt; RegChannel &gt;::iterator j;
      for( j = chatterUI-&gt;regChannels.begin(); j != chatterUI-&gt;regChannels.end(); j++ )
      {
         if( stricmp( (*j).channelID.c_str(), channelUI-&gt;channelID.c_str() ) == 0 )
          {
              (*j).color = channelUI-&gt;channelColor;
          }
      }
  </code></pre>
  
  <p>can you help me please ? (sorry for my bad english...)</p>