Re: SWIGTYPE question

Posted by LordByron on
URL: http://quantlib.414.s1.nabble.com/how-does-one-use-QuantLib-in-a-new-Visual-Studio-project-basic-question-tp6037p6046.html

Thanks Luigi. I'll send the list of all those SWIG artifacts to the list in
a short time.

By the way, if I have a YieldTermStructure instance ts,
ts.__deref__()    doesn't pass
but
ts.__deref__().__deref__()  does.

Best wishes
Harun.


----- Original Message -----
From: "Luigi Ballabio" <[hidden email]>
To: "Harun Özkan" <[hidden email]>
Cc: "QuantLib users" <[hidden email]>
Sent: Monday, April 21, 2008 12:56 PM
Subject: Re: [Quantlib-users] SWIGTYPE question


On Fri, 2008-04-18 at 23:13 +0300, Harun Özkan wrote:
> CSharp.
> Thank you.

Ok. In next release, you'll be able to pass your term structure
directly. In the meantime, if you have a YieldTermStructure instance ts,
you can pass ts.__deref__() to the function.

Luigi


>
> ----- Original Message -----
> On Apr 18, 2008, at 8:28 PM, Harun Özkan wrote:
> > Yes, I have a YieldTermStructure and I have initialized it properly;
> > without a "SWIGTYPE_p_" prefix. Other classes, that take
> > YieldTermStructure in their arguements are working properly.
> > Nonetheless,
> > Cashflows.bps() requires SWIGTYPE_p_YieldTermStructure and does not
> > accept
> > YieldTermStructure.
>
> Hmm. We'll have to fix that. In the meantime, there should be a
> workaround---but I forgot to ask: what language are you using? The
> workaround might depend on that.


--

Olmstead's Law:
After all is said and done, a hell of a lot more is said
than done.



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users