123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef BOOST_QVM_QUAT_TRAITS
- #define BOOST_QVM_QUAT_TRAITS
- namespace boost { namespace qvm {
- template <class Q>
- struct
- quat_traits
- {
- typedef void scalar_type;
- };
- namespace
- is_quaternion_detail
- {
- template <class>
- struct
- is_void
- {
- static bool const value=false;
- };
- template <>
- struct
- is_void<void>
- {
- static bool const value=true;
- };
- }
- template <class T>
- struct
- is_quat
- {
- static bool const value=!is_quaternion_detail::is_void<typename quat_traits<T>::scalar_type>::value;
- };
- } }
- #endif
|