I created a Matrix class, using
static_assert(std::is_arithmetic<T>::value,"");
to check if the template type is an arithmetic type. So I tried with
Matrix<char> matrix1(3,3); // ctor takes number of rows and columns
and it works. The static_assert function is not called with char type. It is normal? char is seen like an arithmetic type?
From the reference:
charis an integral type, so the answer istrue. The fact that the small integers that fit in acharare often interpreted as codepoints in a particular character encoding space is secondary.