[ quantlib-Bugs-3599805 ] Schedule::until works incorrectly with non-full schedules

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-3599805 ] Schedule::until works incorrectly with non-full schedules

SourceForge.net
Bugs item #3599805, was opened at 2013-01-07 07:16
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3599805&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sergey Khorev ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Schedule::until works incorrectly with non-full schedules

Initial Comment:
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.



----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3599805&group_id=12740

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev