title: No viable overloaded
body: <p>I have 2 classes <strong>CVKinectWrapper.cpp</strong> and <strong>main.cpp</strong>. In the CVKinectWrapper, in the <code>bool CVKinectWrapper::update(){ ...</code> i have a variable <code>XnSkeletonJointPosition righthand;</code> I would like to access this variable in the <strong>main.cpp</strong> class. therefor i have created a </p>
  
  <pre><code>`void CVKinectWrapper::getRightHand(XnSkeletonJointPosition *righthand){
    //*righthand = righthand;
  
    righthand-&gt;copyTo(*righthand);
  }`
  </code></pre>
  
  <p>The direct assignment doesn't work, i get this error = '<strong>No match for 'operator=' in*righthand=righthand</strong>'.
  The copyTo doesnt work because the datatype of righthand hasn't got this method.</p>
  
  <p>For extra info : </p>
  
  <p>This is how i access the wrapper in the main class = <code>CVKinectWrapper *wrapper = CVKinectWrapper::getInstance();</code></p>
  
  <pre><code> wrapper-&gt;getRightHand(XnSkeletonJointPosition *righthand)
  </code></pre>
  
  <p>My question now is how can i access the righthand variable from the CVKinectWrapper in the main class. </p>
  
  <p>This is probably a very basic question but i'm rather new to c++.
  Thanks in advance.</p>