title: Why can't a static member function have a cv-qualifier?
body: <p>This is the error:</p>
  
  <pre><code>error: static member function ‘static void myClass::myfunct()’ cannot have cv-qualifier
  </code></pre>
  
  <p>Can someone please explain this error and why const cannot be used.</p>
  
  <pre><code>#include&lt;iostream&gt;
  class myClass{      
     static void myfunct() const 
     { 
       //do something
     }
  };
  
  int main()
  {
     //some code
     return 0;
  }
  </code></pre>