S
Sehcra
Hi,
I'm trying to figure out if what I'm doing makes any sense. I created
a namespace that contains some functions as well as some constants.
Because these variables are constant, I have no need for there to be
more than one copy of them. Does it make sense to make these
variables static const, or do I just make them const? If this were a
class instead of a namespace, I would obviously want to make the
variables static, but this kind of reasoning doesn't seem to apply to
namespaces.
Thanks.
I'm trying to figure out if what I'm doing makes any sense. I created
a namespace that contains some functions as well as some constants.
Because these variables are constant, I have no need for there to be
more than one copy of them. Does it make sense to make these
variables static const, or do I just make them const? If this were a
class instead of a namespace, I would obviously want to make the
variables static, but this kind of reasoning doesn't seem to apply to
namespaces.
Thanks.