
20 Aug
2008
20 Aug
'08
7:41 a.m.
Would it practical to add a rule of thumb to the developer guidelines that library developers should offer a fwd declaration header for their library when possible?
I second this question. In fact, i am wondering whether it would not be even more effective to suggest the separation of each (public) template class into 3 different header files : one containing a forward declaration header, one containing the template class definition and the last one with the definition of its member functions. That would make it possible to easily separate the compilation of boost classes (or at least their methods) from that of user-defined classes. Not sure if this has ever been proposed, but i would certainly like that. Thanks ! Benoît Casoetto