Re: Error in compiling of QuantLib examples
Posted by
Yannis on
Jan 25, 2017; 5:02pm
URL: http://quantlib.414.s1.nabble.com/Error-in-compiling-of-QuantLib-examples-tp17991p17995.html
You 're welcome!
Add the following code defining the default constructor inside the AddCashFlowAmounts class:
AddCashFlowAmounts() : cashFlowSum(0), simpleCashFlowSum(0), redemptionSum(0), amortizingPaymentSum(0) {}
This should initialize the variables to 0 when you call AddCashFlowAmounts addCashFlowsVisitor; inside the calcCashFlowSums function.
Regards.
Ioannis
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org!
http://sdm.link/slashdot_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users