title: "non-const lvalue reference to type cannot bind" error with reference (Type &) but not with pointer (Type *)
body: <p>I am getting this error "Non-const lvalue to type 'Cell' cannot bind to a temporary of type 'Cell *' with this code : </p>
  
  <pre><code>class RegionHolder
  {    
  public:
      RegionHolder(Region&amp; Region1):m_RegionCellNOO(&amp;(Region1.m_NOO))
      ~RegionHolder();
  
  protected:
      Cell &amp; m_RegionCellNOO; // difference is here   
  };
  </code></pre>
  
  <p>but not with this one : </p>
  
  <pre><code>class RegionHolder
  {    
  public:
      RegionHolder(Region&amp; Region1):m_RegionCellNOO(&amp;(Region1.m_NOO))
      ~RegionHolder();
  
  protected:
      Cell * m_RegionCellNOO; // difference is here   
  };
  </code></pre>
  
  <p>I don't understand the problem and would really like to use references and not pointers.</p>
  
  <p>Thanks</p>