/* CSE 333 Su12 lecture 12 demo: compare_solution_two/compare.h */ /* Gribble/Perkins */ // alternative solution to the "where's the code?" template problem. // code is in a separate .cc file (arguably better modularity?) and // that file is #included in the header so clients that #include the // header see everything needed to use the template. #ifndef _COMPARE_H_ #define _COMPARE_H_ template int comp(const T& a, const T& b); #include "compare.cc" #endif // COMPARE_H_