]> www.ginac.de Git - cln.git/blobdiff - include/cln/rational_class.h
Remove some unused configuration macros.
[cln.git] / include / cln / rational_class.h
index 93470f15308038dda543f8a0e07f6b18cbb1b5b1..318e731838f6a9766a2e6fdabb84634b0eca767a 100644 (file)
@@ -22,10 +22,14 @@ public:
        cl_RA (const unsigned int);     // argument must be < 2^29
        cl_RA (const long);
        cl_RA (const unsigned long);
+       cl_RA (const long long);
+       cl_RA (const unsigned long long);
        cl_RA& operator= (const int);           // |argument| must be < 2^29
        cl_RA& operator= (const unsigned int);  // argument must be < 2^29
        cl_RA& operator= (const long);
        cl_RA& operator= (const unsigned long);
+       cl_RA& operator= (const long long);
+       cl_RA& operator= (const unsigned long long);
 // Other constructors.
        cl_RA (const char *);
 // Private constructor.
@@ -33,7 +37,7 @@ public:
        cl_RA (struct cl_heap_ratio *);
 public:        // Ability to place an object at a given address.
        void* operator new (size_t size) { return malloc_hook(size); }
-       void* operator new (size_t size, cl_RA* ptr) { (void)size; return ptr; }
+       void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
        void operator delete (void* ptr) { free_hook(ptr); }
 private:
 // Friend declarations. They are for the compiler. Just ignore them.
@@ -53,6 +57,8 @@ CL_DEFINE_INT_CONSTRUCTORS(cl_RA)
 CL_DEFINE_INT_ASSIGNMENT_OPERATORS(cl_RA)
 CL_DEFINE_LONG_CONSTRUCTORS(cl_RA)
 CL_DEFINE_LONG_ASSIGNMENT_OPERATORS(cl_RA)
+CL_DEFINE_LONGLONG_CONSTRUCTORS(cl_RA)
+CL_DEFINE_LONGLONG_ASSIGNMENT_OPERATORS(cl_RA)
 
 }  // namespace cln