diff --git a/test-suite/cashflows.cpp b/test-suite/cashflows.cpp index 5369d18e263..b70fecf42c2 100644 --- a/test-suite/cashflows.cpp +++ b/test-suite/cashflows.cpp @@ -282,17 +282,17 @@ void CashFlowsTest::testExCouponDates() { // no ex-coupon dates Leg l1 = FixedRateLeg(schedule).withNotionals(100.0).withCouponRates(0.03, Actual360()); for (Size i = 0; i < l1.size(); ++i) { - boost::shared_ptr c = boost::dynamic_pointer_cast(l1[i]); + ext::shared_ptr c = ext::dynamic_pointer_cast(l1[i]); if (c->exCouponDate() != Date()) { BOOST_ERROR("ex-coupon date found (none expected)"); } } // same for floating legs - boost::shared_ptr index(new Euribor3M); + ext::shared_ptr index(new Euribor3M); Leg l2 = IborLeg(schedule, index).withNotionals(100.0); for (Size i = 0; i < l2.size(); ++i) { - boost::shared_ptr c = boost::dynamic_pointer_cast(l2[i]); + ext::shared_ptr c = ext::dynamic_pointer_cast(l2[i]); if (c->exCouponDate() != Date()) { BOOST_ERROR("ex-coupon date found (none expected)"); } @@ -304,7 +304,7 @@ void CashFlowsTest::testExCouponDates() { .withCouponRates(0.03, Actual360()) .withExCouponPeriod(Period(2, Days), NullCalendar(), Unadjusted, false); for (Size i = 0; i < l5.size(); ++i) { - boost::shared_ptr c = boost::dynamic_pointer_cast(l5[i]); + ext::shared_ptr c = ext::dynamic_pointer_cast(l5[i]); Date expected = c->accrualEndDate() - 2; if (c->exCouponDate() != expected) { BOOST_ERROR("ex-coupon date = " << c->exCouponDate() << " (" << expected @@ -316,7 +316,7 @@ void CashFlowsTest::testExCouponDates() { .withNotionals(100.0) .withExCouponPeriod(Period(2, Days), NullCalendar(), Unadjusted, false); for (Size i = 0; i < l6.size(); ++i) { - boost::shared_ptr c = boost::dynamic_pointer_cast(l6[i]); + ext::shared_ptr c = ext::dynamic_pointer_cast(l6[i]); Date expected = c->accrualEndDate() - 2; if (c->exCouponDate() != expected) { BOOST_ERROR("ex-coupon date = " << c->exCouponDate() << " (" << expected @@ -330,7 +330,7 @@ void CashFlowsTest::testExCouponDates() { .withCouponRates(0.03, Actual360()) .withExCouponPeriod(Period(2, Days), TARGET(), Preceding, false); for (Size i = 0; i < l7.size(); ++i) { - boost::shared_ptr c = boost::dynamic_pointer_cast(l7[i]); + ext::shared_ptr c = ext::dynamic_pointer_cast(l7[i]); Date expected = TARGET().advance(c->accrualEndDate(), -2, Days); if (c->exCouponDate() != expected) { BOOST_ERROR("ex-coupon date = " << c->exCouponDate() << " (" << expected @@ -342,7 +342,7 @@ void CashFlowsTest::testExCouponDates() { .withNotionals(100.0) .withExCouponPeriod(Period(2, Days), TARGET(), Preceding, false); for (Size i = 0; i < l8.size(); ++i) { - boost::shared_ptr c = boost::dynamic_pointer_cast(l8[i]); + ext::shared_ptr c = ext::dynamic_pointer_cast(l8[i]); Date expected = TARGET().advance(c->accrualEndDate(), -2, Days); if (c->exCouponDate() != expected) { BOOST_ERROR("ex-coupon date = " << c->exCouponDate() << " (" << expected