Looks like in this case its enough to include "colorwriter.h" instead of "color_namespace.h".I would like to keep the #include in the namespace because there's a dozen other dependencies and I'd like to enable the user to only have to include one file instead of a dozen.
Just define the enum before any other class, it does not depend on them. My suggestion is to remove the #include "colorwriter.h" (and any other header that uses enum) from color_namespace.h, move the enum definition to separate file and include it in any source file depending on the enum, not the other way around.
Simple fix could be to move the #include directives after enum definition.
Bookmarks