What are the pros and cons of using nested public C++ classes and enumerations? For example, suppose you have a class called printer, and this class also store
It seems like you should be using namespaces instead of classes to group like things that are related to each other in this way. One con that I could see in doing nested classes is you end up with a really large source file that could be hard to grok when you are searching for a section.