Skip to content

Instantly share code, notes, and snippets.

@jordanlewis
Created April 11, 2010 21:46
Show Gist options
  • Save jordanlewis/363096 to your computer and use it in GitHub Desktop.
Save jordanlewis/363096 to your computer and use it in GitHub Desktop.
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