Does private inheritance always mean "HAS-A"? : <p>According to my favorite author , <a href="http://scottmeyers.blogspot.com/" rel="noreferrer">Mr Scott Meyers</a>, the <strong>private</strong> inheritance and composition means the same thing aka Has-A relationship. Thus everything that can be gained from composition (containment, when class A has class B as its member) can be gained by private inheritance, and visa-versa. </p>

<p>So the following code should be a Has-A relationship, but from my point of view, its not!</p>

<pre><code>class A : private boost::noncopyable {.. this is irrelevant };
</code></pre>

<p>Can anyone please tell me that I am missing? Or how this code can be implemented through composition?</p>
