21bool isTrueWeekend(QuantLib::Date d) {
24 return (d < QuantLib::Date(1, QuantLib::Jan, 2022)) ?
25 (w == QuantLib::Friday || w == QuantLib::Saturday) :
26 (w == QuantLib::Saturday || w == QuantLib::Sunday);
37 return w == QuantLib::Saturday || w == QuantLib::Sunday ;
41 Day n = d.dayOfMonth();
44 if (isTrueWeekend(d) ||
bool isBusinessDay(const Date &) const override
bool isWeekend(Weekday) const override