aed@netcom.UUCP (Andrew Davidson) (01/15/91)
is there some way to have a the arguments of a member function
initialized with the data members?
for example
class CurveEquation
{
Date start;
Date end;
Basis basis;
Compound freq;
public:
/* line 55 */Rate *GetRate(
const Date &d = start,
Basis newBasis = basis,
Compound newFreq = freq
);
};
yields
curveEq.hh:55: `start' undeclared, outside of functions
curveEq.hh:56: `basis' undeclared, outside of functions
curveEq.hh:57: `freq' undeclared, outside of functions
I tried using the scope operator (CurveEquation::start) but
that did not help
Thanks Andy Davidson
--
-----------------------------------------------------------------
"bede-bede-bede Thats all Folks"
Porky Pig
Andy Davidson
Woodside CA.
aed@netcom
-----------------------------------------------------------------