]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/qvm/test/deduce_vector_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/deduce_vec.hpp>
8 template <class T
,class U
>
17 template <class A
,class B
,int D
,class Result
>
21 same_type
<typename
boost::qvm::deduce_vec2
<A
,B
,D
>::type
,Result
> a
;
22 same_type
<typename
boost::qvm::deduce_vec2
<B
,A
,D
>::type
,Result
> b
;
25 template <class T
,int D
> struct v
;
33 template <class T
,int D
>
37 typedef T scalar_type
;
38 static int const dim
=D
;
46 same_type
< boost::qvm::deduce_vec
< v
<int,3> >::type
, v
<int,3> >();
47 same_type
< boost::qvm::deduce_vec
< v
<int,3>, 4 >::type
, boost::qvm::vec
<int,4> >();
48 check
< v
<int,3>, v
<int,3>, 3, v
<int,3> >();
49 check
< v
<int,3>, v
<float,3>, 4, boost::qvm::vec
<float,4> >();