“Incomplete type not allowed ” when creating std::ofstream objects
As @Mgetz says, you probably forgot to #include <fstream>. The reason you didn’t get a not declared error and instead this incomplete type not allowed error has to do with what happens when there is a type that has been “forward declared”, but not yet fully defined. Look at this example: Notice we could not actually instantiate a Foo object or … Read more