Updated internal::is_arithmetic::value to be true for complex numbers

This commit is contained in:
Benoit Steiner 2015-07-07 12:57:35 -07:00
parent 6e55284e51
commit 7b7df7b6b8

View File

@ -67,6 +67,7 @@ template<> struct is_arithmetic<signed int> { enum { value = true }; };
template<> struct is_arithmetic<unsigned int> { enum { value = true }; };
template<> struct is_arithmetic<signed long> { enum { value = true }; };
template<> struct is_arithmetic<unsigned long> { enum { value = true }; };
template<typename T> struct is_arithmetic<std::complex<T> > { enum { value = true }; };
template <typename T> struct add_const { typedef const T type; };
template <typename T> struct add_const<T&> { typedef T& type; };