|
From: Luigi B. <lui...@gm...> - 2011-02-01 14:41:36
|
On Tue, 2011-02-01 at 15:35 +0100, Henner Heck wrote: > Still, any idea on adding the parameter in SWIG? > >> In the Java classes i get from the SWIG interface files, the optional > >> parameter "paymentConvention" > >> is not available for QuantLib::VanillaSwap. Any chance of making it > >> available? I still have to figure out how to export boost::optional. In the meantime, you can add an overloaded constructor that takes all parameters including the paymentConvention (just duplicate the existing one in the %extend section, add the parameter, and use it to create the VanillaSwap being allocated.) Luigi -- All generalizations are dangerous, even this one. -- Alexandre Dumas |