title: Copy values from one void** to another void** in C++ copy constructor
body: <p>I need to copy values in a copy constructor. But my copy constructor doesn't work </p>
  
  <pre><code>typedef void* Vptr;
  
  class Vector
  {
    int sz;
    Vptr* elemsArray;
  public:
    Vector(const Vector&amp; src) : sz{src.sz}, elemsArray{new Vptr[src.sz]} 
    {
      Vptr lp,rp;
      for (int i = 0; i &lt; this-&gt;sz; i++) {
         lp = this-&gt;elemsArray[i];
         rp = src.elemsArray[i];
         *lp=*rp; // compiler doesn't like this line!!!
      }
    }
  };
  </code></pre>
  
  <p>How can copy values without using <code>std::copy</code>?</p>