]> www.ginac.de Git - cln.git/blobdiff - include/cln/number.h
64-bit mingw port: Define intV in terms of intP.
[cln.git] / include / cln / number.h
index b5ac95f922720d2787265f526c16709e61c5bb86..8abb22bfd6b600e883373c2abf233b6790c32ce3 100644 (file)
@@ -257,7 +257,8 @@ template<class type>
 inline const type& the(const cl_number& x)
 {
        // check that sizeof(type)==sizeof(cl_number)
-       typedef int assertion1 [1 - 2 * (sizeof(type) != sizeof(cl_number))];
+       static_assert(sizeof(type)==sizeof(cl_number),
+                     "sizeof(type)!=sizeof(cl_number)");
        return *(const type *) &x;
 }
 // Conversions to subtypes without checking, macro version: