title: const reference must be initialized in constructor base/member initializer list
body: <p>I am trying to block access to the default constructor of a class I am writing.  The constructor I want others to use requires a const reference to another object.  I have made the default constructor private to prevent others from using it.  I am getting a compiler error for the default constructor because the const reference member variable is not initialized properly.  What can I do to make this compile?</p>
  
  <pre><code>class CFoo
  {
  public:
      CFoo();
      ~CFoo();
  };
  
  class CBar
  {
  public:
      CBar(const CFoo&amp; foo) : fooReference(foo)
      {
      }
  
      ~CBar();
  
  private:
      const CFoo&amp; fooReference;
  
      CBar() // I am getting a compiler error because I don't know what to do with fooReference here...
      {
      }
  };
  </code></pre>