Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualiMalc

Posted 23 December 2012 - 07:28 PM

If your SetPos function were to take _position as a const reference then as long as you keep the actual function implementation to the cpp file, then you can get away with just a forward declaration in the header file.
Oh, except that you would not be able to have m_Position as a member of that class - duh um ignore that.

#2iMalc

Posted 23 December 2012 - 07:28 PM

If your SetPos function were to take _position as a const reference then as long as you keep the actual function implementation to the cpp file, then you can get away with just a forward declaration in the header file.
Oh, except that you would not be able to have it as a member of that class - duh um ignore that.

#1iMalc

Posted 23 December 2012 - 07:26 PM

Well, you can have your cake an eat it too:
If your SetPos function were to take _position as a const reference then as long as you keep the actual function implementation to the cpp file, then you can get away with just a forward declaration in the header file.

PARTNERS