🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Destructor crash

Started by
9 comments, last by WitchLord 17 years, 3 months ago
Quote: Original post by Rakkar2
If I do that is refCount going to be incorrectly shallow copied with the assignment operators?


Operations that need to update the refCount must be wrapped/overloaded to take care of that. All others can use the original class directly.

If you register the assignment operator with the function address from Ogre::Vector3, then it will only copy the Vector3 value and leave the refCount alone. Which is exactly what you want.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement