title: Class inherited from class without default constructor
body: <p>Right now I have a class <code>A</code> that inherits from class <code>B</code>, and <code>B</code> does not have a default constructor. I am trying the create a constructor for <code>A</code> that has the exact same parameters for <code>B</code>'s constructor</p>
  <pre><code>struct B {
    int n;
    B(int i) : n(i) {}
  };
  
  struct A : B {
    A(int i) {
      // ...
    }
  }; 
  </code></pre>
  <p>but I get:</p>
  <pre><code>error: no matching function for call to ‘B::B()’
  note: candidates are: B::B(int)
  </code></pre>
  <p>How would I fix this error?</p>