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);
functions.cpp:10: error: `__mpf_struct (& operator+(__mpf_struct (&), double)
)' must have an argument of class or enumerated type
Thanks any help!