I would like to define inside a class a constant which value is the maximum possible int. Something like this:
class A { ... static const int ERROR_V
Looks like a bit of a defect...
In C++0x, numeric_limits will have everything marked with constexpr, meaning you will be able to use min() and max() as compile-time constants.
numeric_limits
constexpr
min()
max()