]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/safe_numerics/concept/numeric.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / safe_numerics / concept / numeric.hpp
index ef27d069cec921fb6e0cb4f51b696c1bcd766943..66915117b2b5ce6c8b5b93f5e493421896b77739 100644 (file)
@@ -1,24 +1,21 @@
 #ifndef BOOST_NUMERIC_CONCEPT_NUMERIC_HPP
 #define BOOST_NUMERIC_CONCEPT_NUMERIC_HPP
 
-//  Copyright (c) 2012 Robert Ramey
+//  Copyright (c) 2021 Robert Ramey
 //
 // 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 <limits>
+#include <cstdint>
+#include <type_traits>
 
 namespace boost {
 namespace safe_numerics {
 
 template<class T>
-struct Numeric {
-    constexpr static bool value = std::numeric_limits<T>::is_specialized;
-    constexpr operator bool (){
-        return value;
-    }
-};
+using Numeric = std::integral_constant<bool, std::numeric_limits<T>::is_specialized>;
 
 } // safe_numerics
 } // boost