X-Git-Url: https://git.proxmox.com/?p=ceph.git;a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fqvm%2Ftest%2Fmul_qs_test.cpp;h=b5ea1163f52e5e10f8e7aa1765693807c3cc0bba;hp=89089df9adc7d97cb332bc9242c7bc712bac5988;hb=3a9019d971a194e002b14eebff7e21327a178f29;hpb=5291e62e2c8c6a6d67a76e452142e9f71427378e diff --git a/ceph/src/boost/libs/qvm/test/mul_qs_test.cpp b/ceph/src/boost/libs/qvm/test/mul_qs_test.cpp index 89089df9a..b5ea1163f 100644 --- a/ceph/src/boost/libs/qvm/test/mul_qs_test.cpp +++ b/ceph/src/boost/libs/qvm/test/mul_qs_test.cpp @@ -1,40 +1,40 @@ -//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#include -#include -#include "test_qvm_quaternion.hpp" -#include "gold.hpp" - -namespace - { - template struct same_type_tester; - template struct same_type_tester { }; - template void test_same_type( T, U ) { same_type_tester(); } - - void - test() - { - using namespace boost::qvm::sfinae; - test_qvm::quaternion const x(42,1); - test_qvm::scalar_multiply_v(x.b,x.a,2); - test_same_type(x,x*2); - { - test_qvm::quaternion y=x*2; - BOOST_QVM_TEST_EQ(x.b,y.a); - } - { - test_qvm::quaternion y=qref(x)*2; - BOOST_QVM_TEST_EQ(x.b,y.a); - } - } - } - -int -main() - { - test(); - return boost::report_errors(); - } +//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. + +//Distributed under the Boost Software License, Version 1.0. (See accompanying +//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#include +#include +#include "test_qvm_quaternion.hpp" +#include "gold.hpp" + +namespace + { + template struct same_type_tester; + template struct same_type_tester { }; + template void test_same_type( T, U ) { same_type_tester(); } + + void + test() + { + using namespace boost::qvm::sfinae; + test_qvm::quaternion const x(42,1); + test_qvm::scalar_multiply_v(x.b,x.a,2); + test_same_type(x,x*2); + { + test_qvm::quaternion y=x*2; + BOOST_QVM_TEST_EQ(x.b,y.a); + } + { + test_qvm::quaternion y=qref(x)*2; + BOOST_QVM_TEST_EQ(x.b,y.a); + } + } + } + +int +main() + { + test(); + return boost::report_errors(); + }