Is there a reason you need to do this? I just read
here[
^] that a compiler is free to store a const anywhere, thus it could actually be stored in multiple places. My guess is that a copy of
constA
is being stored on the local call stack in each instance.
BTW- It seems like what you really want is a Singleton object. There are
many articles on how to make one of those.