]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/qvm/test/minus_qq_test.cpp
update sources to v12.2.4
[ceph.git] / ceph / src / boost / libs / qvm / test / minus_qq_test.cpp
index ee37c0c231ec66a79d7e8c1ff473c67535685267..29d7fad113b4104dcb979482c32db582be2150a1 100644 (file)
@@ -1,49 +1,49 @@
-//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/quat.hpp>
-#include "test_qvm_quaternion.hpp"
-#include "gold.hpp"
-
-namespace
-    {
-    template <class T,class U> struct same_type_tester;
-    template <class T> struct same_type_tester<T,T> { };
-    template <class T,class U> void test_same_type( T, U ) { same_type_tester<T,U>(); }
-
-    void
-    test()
-        {
-        using namespace boost::qvm::sfinae;
-        test_qvm::quaternion<Q1> const x(42,2);
-            {
-            test_qvm::quaternion<Q1> const y(42,1);
-            test_same_type(x,x-y);
-            test_qvm::quaternion<Q1> r=x-y;
-            test_qvm::subtract_v(r.b,x.b,y.b);
-            BOOST_QVM_TEST_EQ(r.a,r.b);
-            }
-            {
-            test_qvm::quaternion<Q1> const y(42,1);
-            test_qvm::quaternion<Q2> r=qref(x)-y;
-            test_qvm::subtract_v(r.b,x.b,y.b);
-            BOOST_QVM_TEST_EQ(r.a,r.b);
-            }
-            {
-            test_qvm::quaternion<Q1> const y(42,1);
-            test_qvm::quaternion<Q2> r=x-qref(y);
-            test_qvm::subtract_v(r.b,x.b,y.b);
-            BOOST_QVM_TEST_EQ(r.a,r.b);
-            }
-        }
-    }
-
-int
-main()
-    {
-    test();
-    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/quat.hpp>\r
+#include "test_qvm_quaternion.hpp"\r
+#include "gold.hpp"\r
+\r
+namespace\r
+    {\r
+    template <class T,class U> struct same_type_tester;\r
+    template <class T> struct same_type_tester<T,T> { };\r
+    template <class T,class U> void test_same_type( T, U ) { same_type_tester<T,U>(); }\r
+\r
+    void\r
+    test()\r
+        {\r
+        using namespace boost::qvm::sfinae;\r
+        test_qvm::quaternion<Q1> const x(42,2);\r
+            {\r
+            test_qvm::quaternion<Q1> const y(42,1);\r
+            test_same_type(x,x-y);\r
+            test_qvm::quaternion<Q1> r=x-y;\r
+            test_qvm::subtract_v(r.b,x.b,y.b);\r
+            BOOST_QVM_TEST_EQ(r.a,r.b);\r
+            }\r
+            {\r
+            test_qvm::quaternion<Q1> const y(42,1);\r
+            test_qvm::quaternion<Q2> r=qref(x)-y;\r
+            test_qvm::subtract_v(r.b,x.b,y.b);\r
+            BOOST_QVM_TEST_EQ(r.a,r.b);\r
+            }\r
+            {\r
+            test_qvm::quaternion<Q1> const y(42,1);\r
+            test_qvm::quaternion<Q2> r=x-qref(y);\r
+            test_qvm::subtract_v(r.b,x.b,y.b);\r
+            BOOST_QVM_TEST_EQ(r.a,r.b);\r
+            }\r
+        }\r
+    }\r
+\r
+int\r
+main()\r
+    {\r
+    test();\r
+    return boost::report_errors();\r
+    }\r