]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/qvm/test/deduce_matrix_test.cpp
update sources to v12.2.4
[ceph.git] / ceph / src / boost / libs / qvm / test / deduce_matrix_test.cpp
index 769b790da7f7de42a7dc7a8c22d84fc217f5035c..4e846284f1a3dce6283d4e413098a7daa58d39ca 100644 (file)
@@ -1,51 +1,51 @@
-//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/deduce_mat.hpp>
-
-template <class T,class U>
-struct same_type;
-
-template <class T>
-struct
-same_type<T,T>
-    {
-    };
-
-template <class A,class B,int R,int C,class Result>
-struct
-check
-    {
-    same_type<typename boost::qvm::deduce_mat2<A,B,R,C>::type,Result> a;
-    same_type<typename boost::qvm::deduce_mat2<B,A,R,C>::type,Result> b;
-    };
-
-template <class T,int R,int C> struct m;
-
-namespace
-boost
-    {
-    namespace
-    qvm
-        {
-        template <class T,int R,int C>
-        struct
-        mat_traits< m<T,R,C> >
-            {
-            typedef T scalar_type;
-            static int const rows=R;
-            static int const cols=C;
-            };                     
-        }
-    }
-
-int
-main()
-    {
-    same_type< boost::qvm::deduce_mat< m<int,4,2> >::type, m<int,4,2> >();
-    same_type< boost::qvm::deduce_mat< m<int,4,2>, 4, 4 >::type, boost::qvm::mat<int,4,4> >();
-    check< m<int,4,2>, m<int,4,2>, 4, 2, m<int,4,2> >();
-    check< m<int,4,2>, m<float,4,2>, 4, 4, boost::qvm::mat<float,4,4> >();
-    }
+//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/deduce_mat.hpp>\r
+\r
+template <class T,class U>\r
+struct same_type;\r
+\r
+template <class T>\r
+struct\r
+same_type<T,T>\r
+    {\r
+    };\r
+\r
+template <class A,class B,int R,int C,class Result>\r
+struct\r
+check\r
+    {\r
+    same_type<typename boost::qvm::deduce_mat2<A,B,R,C>::type,Result> a;\r
+    same_type<typename boost::qvm::deduce_mat2<B,A,R,C>::type,Result> b;\r
+    };\r
+\r
+template <class T,int R,int C> struct m;\r
+\r
+namespace\r
+boost\r
+    {\r
+    namespace\r
+    qvm\r
+        {\r
+        template <class T,int R,int C>\r
+        struct\r
+        mat_traits< m<T,R,C> >\r
+            {\r
+            typedef T scalar_type;\r
+            static int const rows=R;\r
+            static int const cols=C;\r
+            };                     \r
+        }\r
+    }\r
+\r
+int\r
+main()\r
+    {\r
+    same_type< boost::qvm::deduce_mat< m<int,4,2> >::type, m<int,4,2> >();\r
+    same_type< boost::qvm::deduce_mat< m<int,4,2>, 4, 4 >::type, boost::qvm::mat<int,4,4> >();\r
+    check< m<int,4,2>, m<int,4,2>, 4, 2, m<int,4,2> >();\r
+    check< m<int,4,2>, m<float,4,2>, 4, 4, boost::qvm::mat<float,4,4> >();\r
+    }\r