Skip to main content
gamedev.net
๐Ÿ”’ Locked

Quick question about pointers

Started by Kyo Apr 29, 2003 at 5:47 PM 1 replies 300+ views
Original Post
Kyo
Kyo
void CClass::copyFrom(const CClass &rhs) { aPointer = rhs.aPointer; } does aPointer point to rhs''s aPointer or does it point to what rhs''s aPointer is pointing to? In other words if the class from which it is copying goes out of scope does the pointer become invalid?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.