Hi,
Does anybody
know how to call the JumpDiffusionEngine constructor properly?
Because I am new to QuantLib I called the
constructor as it is shown in the example EquityOption:
// Black-Scholes
for European
method = "Black-Scholes";
europeanOption.setPricingEngine(boost::shared_ptr<PricingEngine>(
new
AnalyticEuropeanEngine));
I modified the corresponding lines to:
//
Jump-Diffusion
method = "Jump-Diffusion";
europeanOption.setPricingEngine(boost::shared_ptr<PricingEngine>(
new
JumpDiffusionEngine));
After compiling the code the following error-message
is displayed:
error C2512:
'QuantLib::JumpDiffusionEngine': There is no appropriate default-constructor
available
How can I implement
the JumpDiffusionEngine properly?
Thanks to all,
Markus
| Free forum by Nabble | Edit this page |