c++ calling non-default constructor as member
<p>let's say i have a class A and a class B. B is used as a member in A. B does not have a default constructor but one that requires a parameter.</p>

<pre><code>class B {
  B(int i) {}
};


class A {

 B m_B;

 A()
 {
    m_B(17); //this gives an error
 }

};
</code></pre>

<p>how can i still use B as a member in A?</p>
