Discussion:
operators
(too old to reply)
David Grohmann
2005-04-18 22:42:22 UTC
Permalink
Are the new friend operators supposed to return a reference to a
biginteger(like the old ones), or a biginteger itself.
--
______________

David Grohmann
Jeff Ford
2005-04-19 13:52:30 UTC
Permalink
Post by David Grohmann
Are the new friend operators supposed to return a reference to a
biginteger(like the old ones), or a biginteger itself.
The only operator that returned a reference on assignment 2 was the
assignment operator. Generally you can only return a reference if you
are returning something that was passed in to the function, so it's
not possible to return references on the +/- operators.

Jeff
--
Jeff Ford http://www.cs.utexas.edu/users/jeffford/
Loading...