Example:
Class *_obj1; Class *_obj2; void doThis(Class *obj) {} void create() { Class *obj1 = new Class(); Class obj2; doThis(obj1); doThi
the only way is to copy object.
Change declaration to:
Class _obj2;
and assign:
_obj2 = obj2;