I am having trouble with a class which holds a constant as a property. I thought I would make the property a static to prevent it being copied for every class object but my compiler won't let me. When I make the const a static I can't define it in the private or public section and when I try to define it at file scope the compiler won't let me. Bjarne says that you can declare the statics as long as you define them later, but how can this be done for a const.
At the moment I've made the const a global but I'd prefer if it weren't. I suppose I could make the const private but I'd have to rewrite all the other member functions to cope with this. I'd like to know what the best workaround for this problem is if there is one.