Skip to content

Commit 68f960d

Browse files
committed
Added signed/unsigned long long specializations for is_scalar
1 parent cbf353a commit 68f960d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/boost/qvm/is_scalar.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ template <> struct is_scalar<signed int> { static bool const value=true; };
2828
template <> struct is_scalar<unsigned int> { static bool const value=true; };
2929
template <> struct is_scalar<signed long> { static bool const value=true; };
3030
template <> struct is_scalar<unsigned long> { static bool const value=true; };
31+
template <> struct is_scalar<signed long long> { static bool const value=true; };
32+
template <> struct is_scalar<unsigned long long> { static bool const value=true; };
3133
template <> struct is_scalar<float> { static bool const value=true; };
3234
template <> struct is_scalar<double> { static bool const value=true; };
3335
template <> struct is_scalar<long double> { static bool const value=true; };

test/scalar_traits_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ tester<is_scalar<long double>::value> t13;
3838
tester<!is_scalar<vec<float,4> >::value> t14;
3939
tester<!is_scalar<mat<float,4,4> >::value> t15;
4040
tester<!is_scalar<quat<float> >::value> t16;
41+
tester<is_scalar<signed long long>::value> t17;
42+
tester<is_scalar<unsigned long long>::value> t18;
4143

4244
int
4345
main()

0 commit comments

Comments
 (0)