title: Must be initialized in constructor base/member?
body: <p>I have this:</p>
  
  <pre><code>class SistemPornire
  {
  Motor&amp; m;
  Electromotor&amp; e;
  public:
  SistemPornire(Motor&amp;,Electromotor&amp;);
  }
  </code></pre>
  
  <p>where Motor and Electromotor are two other classes. I try to define the constructor for this class like this:</p>
  
  <pre><code>SistemPornire::SistemPornire(Motor&amp; M,Electromotor&amp; E)
  {
  this-&gt;m = M;
  this-&gt;e = E;
  }
  </code></pre>
  
  <p>but it gives me 'SistemPornire::m' : must be initialized in constructor base/member initializer list and 'SistemPornire::e' : must be initialized in constructor base/member initializer list</p>