Menu

#160 Schedule::until works incorrectly with non-full schedules

None
closed
nobody
None
5
2017-12-06
2013-01-07
Anonymous
No

Schedule::until calls result.isRegular_.pop_back() that produces unspecified behaviour when isRegular_ is empty. Particularly, it is empty for schedules created with Schedule::Schedule(const std::vector<Date>& dates, const Calendar& calendar, BusinessDayConvention convention)).
I suggest you either restrict the method to complete interfaces or do pop_back only for complete interfaces.

Discussion

  • Luigi Ballabio

    Luigi Ballabio - 2017-12-06
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.