The question is about modeling infinity in C++ for the double data type. I need it in a header file, so we cannot use functions like numeric_limits
double
numeric_limits
Maybe in your C++ environment you have float.h, see http://www.gamedev.net/topic/392211-max-value-for-double-/ (DBL_MAX)
float.h