title: Initializing a reference to member to NULL in C++
body: <p>Is it possible to initialize a reference member to NULL in c++?<br>
  I'm trying to something like this:  </p>
  
  <pre><code>class BigClass
  {
  private:
    Object m_inner;
  public:
    const Object&amp; ReadOnly;
    BigClass() : ReadOnly(NULL)
    {
      Do stuff.
    }
  };
  </code></pre>
  
  <p>I know I can do this if I initialize "ReadOnly" to a real reference of an object, but when I want to put in there "NULL", i get the error:  </p>
  
  <blockquote>
    <p>"cannot convert from 'int' to 'const Object &amp;'</p>
  </blockquote>
  
  <p>How can I solve this?</p>