I am using GMP to process huge numbers. I need to overload +,-,/ and * operators to handle operations between double, mpz_t (gmp type) and char*. When I try to declare the operator, I have errors:
declararion: mpf_t& operator+(mpf_t& v1, double v2);
error:
functions.cpp:10: error: `__mpf_struct (& operator+(__mpf_struct (&)[1], double)
)[1]' must have an argument of class or enumerated type
Thanks any help!



LinkBack URL
About LinkBacks



I am already compiling GMP under Linux to use its C++ interface.