#include <climits> instead of <limits.h> in C++ header file.