]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/qvm/test/assign_test.cpp
1 //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
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)
6 #include <boost/qvm/quat_operations.hpp>
7 #include <boost/qvm/vec_operations.hpp>
8 #include <boost/qvm/mat_operations.hpp>
9 #include "test_qvm_matrix.hpp"
10 #include "test_qvm_quaternion.hpp"
11 #include "test_qvm_vector.hpp"
16 template <int Rows
,int Cols
>
20 using namespace boost::qvm::sfinae
;
21 test_qvm::matrix
<M1
,Rows
,Cols
> const x(42,1);
22 test_qvm::matrix
<M2
,Rows
,Cols
> y(43,1);
24 BOOST_QVM_TEST_EQ(x
.a
,y
.a
);
31 using namespace boost::qvm::sfinae
;
32 test_qvm::vector
<V1
,Dim
> const x(42,1);
33 test_qvm::vector
<V2
,Dim
> y(43,1);
35 BOOST_QVM_TEST_EQ(x
.a
,y
.a
);
41 using namespace boost::qvm::sfinae
;
42 test_qvm::quaternion
<Q1
> const x(42,1);
43 test_qvm::quaternion
<Q2
> y(43,1);
45 BOOST_QVM_TEST_EQ(x
.a
,y
.a
);
69 return boost::report_errors();