]> 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 aeb7d2d20989b22bfd0b7ec01190dc7597625d9a..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)
-       int (*dummy1)(int assertion1 [1 - 2 * (sizeof(type) != sizeof(cl_number))]); (void)dummy1;
+       static_assert(sizeof(type)==sizeof(cl_number),
+                     "sizeof(type)!=sizeof(cl_number)");
        return *(const type *) &x;
 }
 // Conversions to subtypes without checking, macro version: