]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/qvm/test/assign_test.cpp
1 // Copyright 2008-2022 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 #ifdef BOOST_QVM_TEST_SINGLE_HEADER
7 # include BOOST_QVM_TEST_SINGLE_HEADER
9 # include <boost/qvm/quat_operations.hpp>
10 # include <boost/qvm/vec_operations.hpp>
11 # include <boost/qvm/mat_operations.hpp>
14 #include "test_qvm_matrix.hpp"
15 #include "test_qvm_quaternion.hpp"
16 #include "test_qvm_vector.hpp"
21 template <int Rows
,int Cols
>
25 using namespace boost::qvm::sfinae
;
26 test_qvm::matrix
<M1
,Rows
,Cols
> const x(42,1);
27 test_qvm::matrix
<M2
,Rows
,Cols
> y(43,1);
29 BOOST_QVM_TEST_EQ(x
.a
,y
.a
);
36 using namespace boost::qvm::sfinae
;
37 test_qvm::vector
<V1
,Dim
> const x(42,1);
38 test_qvm::vector
<V2
,Dim
> y(43,1);
40 BOOST_QVM_TEST_EQ(x
.a
,y
.a
);
46 using namespace boost::qvm::sfinae
;
47 test_qvm::quaternion
<Q1
> const x(42,1);
48 test_qvm::quaternion
<Q2
> y(43,1);
50 BOOST_QVM_TEST_EQ(x
.a
,y
.a
);
74 return boost::report_errors();