<climits>
long i; if (i<numeric_limits<short>::min() || numeric_limits<short>::max() <i) cout << i << "cannot fit into a short"