]>
Commit | Line | Data |
---|---|---|
1e59de90 | 1 | // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc. |
92f5a8d4 | 2 | |
1e59de90 TL |
3 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
4 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
5 | ||
6 | #ifdef BOOST_QVM_TEST_SINGLE_HEADER | |
7 | # include BOOST_QVM_TEST_SINGLE_HEADER | |
8 | #else | |
9 | # include <boost/qvm/scalar_traits.hpp> | |
10 | #endif | |
92f5a8d4 | 11 | |
92f5a8d4 TL |
12 | #include <boost/qvm/vec.hpp> |
13 | #include <boost/qvm/mat.hpp> | |
14 | #include <boost/qvm/quat.hpp> | |
15 | ||
16 | template <bool> | |
17 | struct tester; | |
18 | ||
19 | template <> | |
20 | struct | |
21 | tester<true> | |
22 | { | |
23 | }; | |
24 | ||
25 | using namespace boost::qvm; | |
1e59de90 | 26 | tester<!is_scalar<char>::value> t1; |
92f5a8d4 TL |
27 | tester<is_scalar<signed char>::value> t2; |
28 | tester<is_scalar<unsigned char>::value> t3; | |
29 | tester<is_scalar<signed short>::value> t4; | |
30 | tester<is_scalar<unsigned short>::value> t5; | |
31 | tester<is_scalar<signed int>::value> t6; | |
32 | tester<is_scalar<unsigned int>::value> t7; | |
33 | tester<is_scalar<signed long>::value> t8; | |
34 | tester<is_scalar<unsigned long>::value> t9; | |
35 | tester<is_scalar<float>::value> t10; | |
36 | tester<is_scalar<double>::value> t11; | |
37 | tester<is_scalar<long double>::value> t13; | |
38 | tester<!is_scalar<vec<float,4> >::value> t14; | |
39 | tester<!is_scalar<mat<float,4,4> >::value> t15; | |
40 | tester<!is_scalar<quat<float> >::value> t16; | |
1e59de90 TL |
41 | |
42 | int | |
43 | main() | |
44 | { | |
45 | return 0; | |
46 | } |