Original Post
Hi all!
Do variables and objects that are declared on the free store (heap) have scope?
In other words, can I create a variable on the free store in my class constructor, and set a member pointer of the class to point to that variable, without the variable going out of scope as soon as the constructor terminates?
Thanks!
Gareth