Created
April 11, 2010 21:46
-
-
Save jordanlewis/363096 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Inner | |
{ | |
float a; | |
float b; | |
}; | |
class Outer | |
{ | |
Inner myInner; | |
public: | |
void updateInner(Inner & newInner); | |
}; | |
void Outer::updateInner(Inner & newInner) | |
{ | |
this->myInner = newInner; /* does this work OK? what happens to the memory that used to | |
* hold the original myInner? | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment