c++ style gmp