Re: Re: accrualAmount() function within the bond class...

Posted by Joseph Wang on
URL: http://quantlib.414.s1.nabble.com/Problem-within-the-Bond-YieldSolver-class-tp4278p4284.html

Looking over the code it doesn't look that bad to refactor things so
that QL_TODAYS_PAYMENT is modularized.  The key seems to create a
routine in Event


bool Event::hasOccurred(Date settlementDate,
#if QL_TODAYS_PAYMENT
bool include_todays_date = true
#else
bool include_todays_date = false
#endif
);

This gets rid of all but one use of  the define

Thoughts?