title: error: assignment of read-only variable
body: <p>I have a main.h file and include <code>static const unsigned int TIME = 13;</code>
  and i have and main.cpp file include </p>
  
  <pre><code>    int64_t Gettime(int nnow, int64_t never)
  
  
  { 
     static const bool TIME = true;
  
      if(nnow == 6)
      {
          TIME = 9; 
      }
  
      else if(nnow == 8)
      {
          TIME = 3; 
      }
  
      else if(nnow == 1)
      {
          TIME = 40;
      }
  
      else if(nnow &gt; 190)
      {
          TIME = 4000000;
      }
  
      return TIME + never;
  }
  </code></pre>
  
  <p>on compile i get main.cpp:56:24: error: assignment of read-only variable ‘TIME’
           TIME = 3;
                ^</p>
  
  <p>i want to change the TIME variable from main.h using a main.cpp function any help ?</p>