]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/qvm/vec_traits.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / qvm / vec_traits.hpp
index 63e423769a84957089a9a6660175e6d3507b328b..1da57bdf13fa7127ed2471b14c98f737529f1aa9 100644 (file)
@@ -1,32 +1,30 @@
-//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
+// Copyright 2008-2022 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)
+// 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)
 
-#ifndef BOOST_QVM_01224884FC4111DF9570F7E4DED72085
-#define BOOST_QVM_01224884FC4111DF9570F7E4DED72085
+#ifndef BOOST_QVM_VEC_TRAITS_HPP_INCLUDED
+#define BOOST_QVM_VEC_TRAITS_HPP_INCLUDED
 
-namespace
-boost
+#include <boost/qvm/is_scalar.hpp>
+
+namespace boost { namespace qvm {
+
+template <class V>
+struct
+vec_traits
     {
-    namespace
-    qvm
-        {
-        template <class V>
-        struct
-        vec_traits
-            {
-            static int const dim=0;
-            typedef void scalar_type;
-            };
-
-        template <class T>
-        struct
-        is_vec
-            {
-            static bool const value=vec_traits<T>::dim>0;
-            };
-        }
-    }
+    static int const dim=0;
+    typedef void scalar_type;
+    };
+
+template <class T>
+struct
+is_vec
+    {
+    static bool const value = is_scalar<typename vec_traits<T>::scalar_type>::value && vec_traits<T>::dim>0;
+    };
+
+} }
 
 #endif