Hi, I have a program with a centralized hub - a static class that maintains all high-level program data that isn't gui-related. It also analyzes all user input and file loading/saving.
Originally I wrote a class with all static methods and variables, but as I understand it, it's simpler to just dump everything into a namespace.When I do this I get linking errors ('multiple definitions') on both the functions and variables. What is the preferred design pattern here?