Re: discount' : is not a member of 'Handle<class QuantLib::TermStruct ure>'
Posted by
Luigi Ballabio-4 on
URL: http://quantlib.414.s1.nabble.com/discount-is-not-a-member-of-Handle-class-QuantLib-TermStruct-ure-tp1901p1902.html
Hi Luis,
At 04:19 PM 3/13/02 +0000, Luis Pereira wrote:
>I am trying to use the QuantLib::TermStructure in order to calculate
>Discount Factors. I tryed like this:
>
>DiscountFactor bla;
>bla=depoSwapTermStructure.discount(1, false);
>
>But I get the message "discount' : is not a member of 'Handle<class
>QuantLib::TermStructure>'".
>
>What am I doing wrong?
A Handle is a kind of smart pointer and has the same syntax.
The above must be written as:
bla=depoSwapTermStructure->discount(1, false); // note the -> access
Good luck,
Luigi