]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/qvm/mat_traits.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / qvm / mat_traits.hpp
index ec8194d107595b7fd40f53df3c0d29aaf83dc7c2..7d4ea24c5518094f03a1ec078645198d50faece6 100644 (file)
@@ -1,33 +1,31 @@
-//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
+#ifndef BOOST_QVM_TRAITS_HPP_INCLUDED
+#define BOOST_QVM_TRAITS_HPP_INCLUDED
 
-//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)
+// Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
 
-#ifndef BOOST_QVM_8C06FE26A3E711DEA02C88BA55D89593
-#define BOOST_QVM_8C06FE26A3E711DEA02C88BA55D89593
+// 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)
 
-namespace
-boost
+#include <boost/qvm/is_scalar.hpp>
+
+namespace boost { namespace qvm {
+
+template <class M>
+struct
+mat_traits
     {
-    namespace
-    qvm
-        {
-        template <class M>
-        struct
-        mat_traits
-            {
-            static int const rows=0;
-            static int const cols=0;
-            typedef void scalar_type;
-            };
-
-        template <class T>
-        struct
-        is_mat
-            {
-            static bool const value=mat_traits<T>::rows>0 && mat_traits<T>::cols>0;
-            };
-        }
-    }
+    static int const rows=0;
+    static int const cols=0;
+    typedef void scalar_type;
+    };
+
+template <class T>
+struct
+is_mat
+    {
+    static bool const value = is_scalar<typename mat_traits<T>::scalar_type>::value && mat_traits<T>::rows>0 && mat_traits<T>::cols>0;
+    };
+
+} }
 
 #endif