std::numeric_limits<volatile int>::is_integer
evaluates to 'false'.
But why? Isn't a volatile int still an integer type? I want to know if there is some kind of deep meaning in this.
UPD: Compiler is armcc from Keil 4.72
std::numeric_limits<volatile int>::is_integer
evaluates to 'false'.
But why? Isn't a volatile int still an integer type? I want to know if there is some kind of deep meaning in this.
UPD: Compiler is armcc from Keil 4.72
You are (or, may be, your compiler) wrong here because it should be true.
From numeric_limits page:
And from numeric_limits/is_integer page: