]>
Commit | Line | Data |
---|---|---|
b32b8144 FG |
1 | //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.\r |
2 | \r | |
3 | //Distributed under the Boost Software License, Version 1.0. (See accompanying\r | |
4 | //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\r | |
5 | \r | |
6 | #ifndef UUID_EF321CBE275911E084A4550FDFD72085\r | |
7 | #define UUID_EF321CBE275911E084A4550FDFD72085\r | |
8 | \r | |
9 | namespace\r | |
10 | boost\r | |
11 | {\r | |
12 | namespace\r | |
13 | qvm\r | |
14 | {\r | |
15 | template <class Q>\r | |
16 | struct\r | |
17 | quat_traits\r | |
18 | {\r | |
19 | typedef void scalar_type;\r | |
20 | };\r | |
21 | \r | |
22 | namespace\r | |
23 | is_quaternion_detail\r | |
24 | {\r | |
25 | template <class>\r | |
26 | struct\r | |
27 | is_void\r | |
28 | {\r | |
29 | static bool const value=false;\r | |
30 | };\r | |
31 | \r | |
32 | template <>\r | |
33 | struct\r | |
34 | is_void<void>\r | |
35 | {\r | |
36 | static bool const value=true;\r | |
37 | };\r | |
38 | }\r | |
39 | \r | |
40 | template <class T>\r | |
41 | struct\r | |
42 | is_quat\r | |
43 | {\r | |
44 | static bool const value=!is_quaternion_detail::is_void<typename quat_traits<T>::scalar_type>::value;\r | |
45 | };\r | |
46 | }\r | |
47 | }\r | |
48 | \r | |
49 | #endif\r |