new PiecewiseFlatForward(today,settlement,instruments,Actual360()));
new PiecewiseFlatForward(settlement,instruments,Actual360()));
    void initialize() {        calendar_ = TARGET();        settlementDays_ = 2;        Date today = calendar_.adjust(Date::todaysDate());        Date settlement = calendar_.advance(today,settlementDays_,Days);        Datum depositData[] = {            { 1, Months, 4.581 },            { 2, Months, 4.573 },            { 3, Months, 4.557 },            { 6, Months, 4.496 },            { 9, Months, 4.490 }        };        Datum swapData[] = {            {  1, Years, 4.54 },            {  5, Years, 4.99 },            { 10, Years, 5.47 },            { 20, Years, 5.89 },            { 30, Years, 5.96 }        };        Size deposits = LENGTH(depositData),            swaps = LENGTH(swapData);        std::vector<boost::shared_ptr<RateHelper> >            instruments(deposits+swaps);        Size i;        for (i=0; i<deposits; i++) {            instruments[i] = boost::shared_ptr<RateHelper>(                 new DepositRateHelper(depositData[i].rate/100,                                       depositData[i].n, depositData[i].units,                                       settlementDays_, calendar_,                                       ModifiedFollowing, Actual360()));        }        for (i=0; i<swaps; i++) {            instruments[i+deposits] = boost::shared_ptr<RateHelper>(                          new SwapRateHelper(swapData[i].rate/100,                                             swapData[i].n, swapData[i].units,                                             settlementDays_, calendar_,                                             Annual, Unadjusted, Thirty360(),                                             Semiannual, ModifiedFollowing));        }        termStructure_ = boost::shared_ptr<TermStructure>(          new PiecewiseFlatForward(today,settlement,instruments,Actual360()));    }