title: Deep Copying const pointer to const Object
body: <p>I have an object constructor that takes in a const pointer to a const object</p>
  
  <pre><code>A::A( const B* const ex): m_B(B){};
  </code></pre>
  
  <p>where m_B:</p>
  
  <pre><code>const B* const m_B;
  </code></pre>
  
  <p>I am now trying to create a copy constructor and assignment operator 
  I have tried the following without any luck.</p>
  
  <p>Copy Constructor:</p>
  
  <pre><code>A::A( const A&amp; cpy): *m_B(*cpy.m_B) {}
  </code></pre>
  
  <p>This does not work...how do I approach this?
  Assignment Operator:</p>
  
  <pre><code>A&amp; A::operator=(const A&amp; rhs) {
  
   *m_B = *rhs.m_B // I know this won't work because const cannot be assigned 
                   // error: assignment of read-only data-member
  }
  </code></pre>
  
  <p>Any ideas how to solve this problem?</p>