What do you think of providing a header that includes base/ref_ptr.h and forward declarations for all classes in globjects, as a sort of entry point to declare classes that use globjects (and thus hold ref_ptrs to various globjects)? It gets kinda redundant after a while in larger projects to have the same forward declaration in a lot of header files throughout a project.
What do you think of providing a header that includes base/ref_ptr.h and forward declarations for all classes in globjects, as a sort of entry point to declare classes that use globjects (and thus hold ref_ptrs to various globjects)? It gets kinda redundant after a while in larger projects to have the same forward declaration in a lot of header files throughout a project.
glm provides something like that for example (http://glm.g-truc.net/0.9.5/api/a00041_source.html).