]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/qvm/detail/quat_assign.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / qvm / detail / quat_assign.hpp
CommitLineData
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_86A42DA4385511E7822024B881262D2E\r
7#define UUID_86A42DA4385511E7822024B881262D2E\r
8\r
9#include <boost/qvm/inline.hpp>\r
10#include <boost/qvm/enable_if.hpp>\r
11#include <boost/qvm/quat_traits.hpp>\r
12\r
13namespace\r
14boost\r
15 {\r
16 namespace\r
17 qvm\r
18 {\r
19 template <class A,class B>\r
20 BOOST_QVM_INLINE_OPERATIONS\r
21 typename enable_if_c<\r
22 is_quat<A>::value && is_quat<B>::value,\r
23 A &>::type\r
24 assign( A & a, B const & b )\r
25 {\r
26 quat_traits<A>::template write_element<0>(a) = quat_traits<B>::template read_element<0>(b);\r
27 quat_traits<A>::template write_element<1>(a) = quat_traits<B>::template read_element<1>(b);\r
28 quat_traits<A>::template write_element<2>(a) = quat_traits<B>::template read_element<2>(b);\r
29 quat_traits<A>::template write_element<3>(a) = quat_traits<B>::template read_element<3>(b);\r
30 return a;\r
31 }\r
32 }\r
33 }\r
34\r
35#endif\r