Automatically separate class definitions from declarations?
问题 I am using a library that consists almost entirely of templated classes and functions in header files , like this: // foo.h template<class T> class Foo { Foo(){} void computeXYZ() { /* heavy code */ } }; template<class T> void processFoo(const Foo<T>& foo) { /* more heavy code */ } Now this is bad because compile times are unbearable whenever I include one of those header files (and actually I include many of them in each of my compilation units). Since as a template parameter I only use one