22#include <ql/errors.hpp>
31 originalSettlementCalendar_ = Russia(Russia::Settlement);
32 originalExchangeCalendar_ = Russia(Russia::MOEX);
37 static ext::shared_ptr<Calendar::Impl> settlementImpl(
39 static ext::shared_ptr<Calendar::Impl> exchangeImpl(
43 case Russia::Settlement:
44 impl_ = settlementImpl;
50 QL_FAIL(
"unknown market");
55 return originalSettlementCalendar_.isBusinessDay(date);
62 if (date.year() < 2012)
63 return originalSettlementCalendar_.isBusinessDay(date);
65 return originalExchangeCalendar_.isBusinessDay(date);
bool isBusinessDay(const Date &) const override
bool isBusinessDay(const Date &) const override
Calendar originalSettlementCalendar_
RussiaModified(Russia::Market=Russia::Settlement)
Russian calendar, modified QuantLib Russia to extend MOEX before 2012.