T
Tom
I create a object in function foo and then I pass the reference of the
object to function bar like this
void foo()
{
class_foo myFoo();
bar(myFoo);
}
void bar(class_foo& object)
{
}
and bar places the object in to a global map by passing the address of
the object parameter.
Now if I then leave function foo, is the object in the global map still
safe?
TIA,
Tom.
object to function bar like this
void foo()
{
class_foo myFoo();
bar(myFoo);
}
void bar(class_foo& object)
{
}
and bar places the object in to a global map by passing the address of
the object parameter.
Now if I then leave function foo, is the object in the global map still
safe?
TIA,
Tom.