Re Sam's comments: A good alternative to static members (which are visible to all translation units including the header) to is to put variable in an anonymous namespace in the .cpp file.
I still think a singleton makes things worse.
« Back to merge proposal
Re Sam's comments: A good alternative to static members (which are visible to all translation units including the header) to is to put variable in an anonymous namespace in the .cpp file.
I still think a singleton makes things worse.