title: Giving default values to reference member variables
body: <p>so I've made a class in c++ which has 2 reference type members:</p>
  
  <pre><code>class Edge{
  private:
  const Node&amp; base;
  const Node&amp; target;
  
  public:
      Edge(const Node&amp; new1, const Node&amp; new2);
  </code></pre>
  
  <p>I want to give default values to base and target in the C'tor. Which means that:</p>
  
  <pre><code>Edge()
  </code></pre>
  
  <p>will not be an error, but will do create an Edge object. How do I do that?</p>
  
  <p>edit:
  I'm also trying to do:</p>
  
  <pre><code>Edge::Edge(const Node&amp; newBase, const Node&amp; newTarg)
  {
      m_base=newBase;
      m_target=newTarg;
  }
  </code></pre>
  
  <p>But it won't let me, it says no operator "=" matches this operators. But I did make a "=" operator for Nodes and checked it worked.......</p>