//This file is limits. #ifndef LIMITSH #define LIMITSH #include //for INT_MIN, INT_MAX, etc. template //useless dummy, only to avoid syntax error class numeric_limits { }; template <> //the first of several useful specializations class numeric_limits { public: static int min() {return INT_MIN;} static int max() {return INT_MAX;} }; template <> class numeric_limits { public: const int digits10 = DBL_DIG; static double max() {return DBL_MAX;} }; #endif