title: Cannot convert 'this' pointer to Class&
body: <p>Can someone tell why i'm getting this error when compling this class?</p>
  
  <pre><code>class C
  {
  public:
      void func(const C &amp;obj)
      {
         //body
      }
  
  private:
      int x;
  };
  
  void func2(const C &amp;obj)
  {
      obj.func(obj);
  }
  
  int main() { /*no code here yet*/}
  </code></pre>