std::vector<boost::shared_ptr<RateHelper> > instruments(deposits+swaps);
instruments = std::vector<boost::shared_ptr<RateHelper> >(deposits+swaps);
    void initialize() {        // data        calendar = TARGET();        settlementDays = 2;        fixingDays = 2;        today = calendar.adjust(Date::todaysDate());        settlement = calendar.advance(today,settlementDays,Days);        depoConvention = ModifiedFollowing;        depoDayCounter = Actual360();        fixedLegConvention = Unadjusted;        floatingLegConvention = ModifiedFollowing;        fixedLegFrequency = Annual;        fixedLegDayCounter = Thirty360();        floatingLegFrequency = Semiannual;        deposits = LENGTH(depositData);        swaps = LENGTH(swapData);        // market elements        rates = std::vector<boost::shared_ptr<SimpleQuote> >(deposits+swaps);        Size i;        for (i=0; i<deposits; i++) {            rates[i] = boost::shared_ptr<SimpleQuote>(                                    new SimpleQuote(depositData[i].rate/100));        }        for (i=0; i<swaps; i++) {            rates[i+deposits] = boost::shared_ptr<SimpleQuote>(                                       new SimpleQuote(swapData[i].rate/100));        }        // rate helpers        std::vector<boost::shared_ptr<RateHelper> >            instruments(deposits+swaps);        for (i=0; i<deposits; i++) {            Handle<Quote> r(rates[i]);            instruments[i] = boost::shared_ptr<RateHelper>(              new DepositRateHelper(r, depositData[i].n, depositData[i].units,                                    settlementDays, calendar,                                    depoConvention, depoDayCounter));        }        for (i=0; i<swaps; i++) {            Handle<Quote> r(rates[i+deposits]);            instruments[i+deposits] = boost::shared_ptr<RateHelper>(                new SwapRateHelper(r, swapData[i].n, swapData[i].units,                                   settlementDays, calendar,                                   fixedLegFrequency, fixedLegConvention,                                   fixedLegDayCounter, floatingLegFrequency,                                   floatingLegConvention));        }        // instantiate curve        termStructure = boost::shared_ptr<TermStructure>(          new PiecewiseFlatForward(today,settlement,instruments,Actual360()));    }