On Sun, 14 May 2000, guy keren wrote:
> > Although I was able to compile it without warnings I do not understand:
> > 1) What is the meaning of the first (left most) const in
> > const Integer operator+(const Integer& rv) ... ?
>
> it means that the '+' operator returns an 'r' value, not a
On Sat, 13 May 2000, Shaul Karl wrote:
> Consider the following C++ program:
[program moved to the end of this letter]
> Although I was able to compile it without warnings I do not understand:
> 1) What is the meaning of the first (left most) const in
> const Integer operator+(const Inte
Consider the following C++ program:
//: C12:OperatorOverloadingSyntax.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
#include
using namespace std;
class Integer {
int i;
public:
Integer(int ii)