]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/qvm/quat_traits_defaults.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / qvm / quat_traits_defaults.hpp
1 //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
2
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 #ifndef UUID_0595DEC2C72D11E6B6B77C2A07624D53
7 #define UUID_0595DEC2C72D11E6B6B77C2A07624D53
8
9 #include <boost/qvm/inline.hpp>
10 #include <boost/qvm/assert.hpp>
11
12 namespace
13 boost
14 {
15 namespace
16 qvm
17 {
18 template <class>
19 struct quat_traits;
20
21 template <class QuatType,class ScalarType>
22 struct
23 quat_traits_defaults
24 {
25 typedef QuatType quat_type;
26 typedef ScalarType scalar_type;
27
28 template <int I>
29 static
30 BOOST_QVM_INLINE_CRITICAL
31 scalar_type
32 read_element( quat_type const & x )
33 {
34 return quat_traits<quat_type>::template write_element<I>(const_cast<quat_type &>(x));
35 }
36 };
37 }
38 }
39
40 #endif