]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/safe_numerics/concept/numeric.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / safe_numerics / concept / numeric.hpp
index d7f0f3470946753a7c8fc46155efb552cf1775d0..ef27d069cec921fb6e0cb4f51b696c1bcd766943 100644 (file)
@@ -14,13 +14,10 @@ namespace safe_numerics {
 
 template<class T>
 struct Numeric {
-    // if your program traps here, you need to create a
-    // std::numeric_limits class for your type T.  see
-    // see C++ standard 18.3.2.2
-    static_assert(
-        std::numeric_limits<T>::is_specialized,
-        "std::numeric_limits<T> has not been specialized for this type"
-    );
+    constexpr static bool value = std::numeric_limits<T>::is_specialized;
+    constexpr operator bool (){
+        return value;
+    }
 };
 
 } // safe_numerics