]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/qvm/test/assign_test.cpp
update sources to v12.2.4
[ceph.git] / ceph / src / boost / libs / qvm / test / assign_test.cpp
index 96ff1cea345d99f495ee8a7c29a163286731f2b8..70822e4bc9a1bf652ce924a399d5c2b7a30f5ca5 100644 (file)
@@ -1,70 +1,70 @@
-//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 <boost/qvm/quat_operations.hpp>
-#include <boost/qvm/vec_operations.hpp>
-#include <boost/qvm/mat_operations.hpp>
-#include "test_qvm_matrix.hpp"
-#include "test_qvm_quaternion.hpp"
-#include "test_qvm_vector.hpp"
-#include "gold.hpp"
-
-namespace
-    {
-    template <int Rows,int Cols>
-    void
-    test_matrix()
-        {
-        using namespace boost::qvm::sfinae;
-        test_qvm::matrix<M1,Rows,Cols> const x(42,1);
-        test_qvm::matrix<M2,Rows,Cols> y(43,1);
-        assign(y,x);
-        BOOST_QVM_TEST_EQ(x.a,y.a);
-        }
-
-    template <int Dim>
-    void
-    test_vector()
-        {
-        using namespace boost::qvm::sfinae;
-        test_qvm::vector<V1,Dim> const x(42,1);
-        test_qvm::vector<V2,Dim> y(43,1);
-        assign(y,x);
-        BOOST_QVM_TEST_EQ(x.a,y.a);
-        }
-
-    void
-    test_quaternion()
-        {
-        using namespace boost::qvm::sfinae;
-        test_qvm::quaternion<Q1> const x(42,1);
-        test_qvm::quaternion<Q2> y(43,1);
-        assign(y,x);
-        BOOST_QVM_TEST_EQ(x.a,y.a);
-        }
-    }
-
-int
-main()
-    {
-    test_matrix<1,2>();
-    test_matrix<2,1>();
-    test_matrix<2,2>();
-    test_matrix<1,3>();
-    test_matrix<3,1>();
-    test_matrix<3,3>();
-    test_matrix<1,4>();
-    test_matrix<4,1>();
-    test_matrix<4,4>();
-    test_matrix<1,5>();
-    test_matrix<5,1>();
-    test_matrix<5,5>();
-    test_vector<2>();
-    test_vector<3>();
-    test_vector<4>();
-    test_vector<5>();
-    test_quaternion();
-    return boost::report_errors();
-    }
+//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.\r
+\r
+//Distributed under the Boost Software License, Version 1.0. (See accompanying\r
+//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\r
+\r
+#include <boost/qvm/quat_operations.hpp>\r
+#include <boost/qvm/vec_operations.hpp>\r
+#include <boost/qvm/mat_operations.hpp>\r
+#include "test_qvm_matrix.hpp"\r
+#include "test_qvm_quaternion.hpp"\r
+#include "test_qvm_vector.hpp"\r
+#include "gold.hpp"\r
+\r
+namespace\r
+    {\r
+    template <int Rows,int Cols>\r
+    void\r
+    test_matrix()\r
+        {\r
+        using namespace boost::qvm::sfinae;\r
+        test_qvm::matrix<M1,Rows,Cols> const x(42,1);\r
+        test_qvm::matrix<M2,Rows,Cols> y(43,1);\r
+        assign(y,x);\r
+        BOOST_QVM_TEST_EQ(x.a,y.a);\r
+        }\r
+\r
+    template <int Dim>\r
+    void\r
+    test_vector()\r
+        {\r
+        using namespace boost::qvm::sfinae;\r
+        test_qvm::vector<V1,Dim> const x(42,1);\r
+        test_qvm::vector<V2,Dim> y(43,1);\r
+        assign(y,x);\r
+        BOOST_QVM_TEST_EQ(x.a,y.a);\r
+        }\r
+\r
+    void\r
+    test_quaternion()\r
+        {\r
+        using namespace boost::qvm::sfinae;\r
+        test_qvm::quaternion<Q1> const x(42,1);\r
+        test_qvm::quaternion<Q2> y(43,1);\r
+        assign(y,x);\r
+        BOOST_QVM_TEST_EQ(x.a,y.a);\r
+        }\r
+    }\r
+\r
+int\r
+main()\r
+    {\r
+    test_matrix<1,2>();\r
+    test_matrix<2,1>();\r
+    test_matrix<2,2>();\r
+    test_matrix<1,3>();\r
+    test_matrix<3,1>();\r
+    test_matrix<3,3>();\r
+    test_matrix<1,4>();\r
+    test_matrix<4,1>();\r
+    test_matrix<4,4>();\r
+    test_matrix<1,5>();\r
+    test_matrix<5,1>();\r
+    test_matrix<5,5>();\r
+    test_vector<2>();\r
+    test_vector<3>();\r
+    test_vector<4>();\r
+    test_vector<5>();\r
+    test_quaternion();\r
+    return boost::report_errors();\r
+    }\r