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
Remember that you can always promote a nested class to a top-level one later, but you may not be able to do the opposite without breaking existing code. Therefore, my advice would be make it a nested class first, and if it starts to become a problem, make it a top-level class in the next version.